Solved

adding anchor links in wordpress

Posted on 2013-01-07
7
371 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
ID: 38751326
What did you have in mind?
0
 

Author Comment

by:nsitedesigns
ID: 38751489
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
ID: 38751537
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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:nsitedesigns
ID: 38751670
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
ID: 38751707
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
ID: 38751911
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
ID: 38751919
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

773 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