Solved

adding anchor links in wordpress

Posted on 2013-01-07
7
395 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

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

Interactive Way of Training for the AWS CSA Exam

An interactive way of learning that will help you visualize core concepts so that you can be more effective when taking your AWS certification exam.  Built for students by a student to help them understand the concepts that they are being taught.

Question has a verified solution.

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

CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

632 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