Solved

adding anchor links in wordpress

Posted on 2013-01-07
7
363 Views
Last Modified: 2013-01-07
Is there a way for my programmer to add code to Word Press so that my client can easily add anchor links?
0
Comment
Question by:nsitedesigns
  • 4
  • 3
7 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
What did you have in mind?
0
 

Author Comment

by:nsitedesigns
Comment Utility
Well, I wanted to know if there was a way to add an anchor link icon (or some other feature) that would allow client to add anchor links to their wp site.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
Yes, but you lead off by asking if there is a programmatic solution.  Are you looking to alter the interface to do something out-of-the-ordinary with anchors or do you just want to add an anchor link button to the visual editor?
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:nsitedesigns
Comment Utility
Looking for anyway that I can help client add anchor link to wp site.  Not sure if we can install a plugin or if there is already something in wp that lets you do this.
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
Comment Utility
You can install the TinyMCE Advanced plugin as it has an anchor button.  

Alternately, you can add the following code to your functions.php file:

function more_buttons($buttons) {
   $buttons[] = 'anchor';
   return $buttons;
}
add_filter("mce_buttons_3", "more_buttons");
0
 

Author Comment

by:nsitedesigns
Comment Utility
Thanks.  Will adding this code create an icon client can click on to insert?  Additionally, I will need this system to provide link url so he can add this to the area on his site that will require the anchor.

One other question.  If we install it and don't like it, can we uninstall it without any problems?
0
 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 500 total points
Comment Utility
Will adding this code create an icon client can click on to insert?

Yes, it adds a button to the toolbar.

Additionally, I will need this system to provide link url so he can add this to the area on his site that will require the anchor.

That's where you may have to do some training.  Both the code solution and the TinyMCE solution simply create the <a name="something"> anchor target in the content.  To link to that, the user would use the normal link tool but manually append the #something to it in the tool.

If we install it and don't like it, can we uninstall it without any problems?

Yes.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now