Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a big one page wordpress site and a menu created from wordpress admin pages panel. I added everywhere in my main page such links like <A NAME="gohere"> and similar. Now I need to add href's to the page menu name's like <a href="#gohere"> Actually I do not know is it possible to do this from the wordpress admin page's menu or maybe anybody know where these pages are stored so that I could add the links manually in the file's. Thanks!

Tried plugin "Page Links to" and added something like <A NAME="gohere"> as a link in where, but unfortunately plugin do not understand this,

Regards,

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

well you've to change code in loop for example currently now loop is like

<?php if(have_post) : while(yourquery): the_post : <div>the_title</div><div>the_content</div> endwhile; endif;

Then Just Add this line also

<?php if(have_post) : while(yourquery): the_post <a name="$i"><div>the_title</div><div>the_content</div></a> endwhile; endif;
share|improve this answer
    
Hello there! I have exactly the same problem... In which file should I change this code? –  Pitto Mar 14 '12 at 15:47
add comment

Try using the "Custom Links" meta box, to add any arbitrary link as a menu item. You'll need to add the full-path URL, but that shouldn't be a problem.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.