2

I have made a one page website with their jump links using id attribute (#). These jump links are provided in the navigation bar (header navigation menu).

Now, we want to add another page, but the problem is that when we are on this new page, the anchors (jump links) of the first page don't work. The only solution is to click the home URL to return to the first page of the website.Is there any other solution?

  • add a slash before the # in the navigation links – tillinberlin Feb 24 '17 at 13:04
0

You can use it like this http://wwww.yoursite.com/#anchor from another page.

  • Thank you very much for your fast response. I'm using the zerif lite(free) theme and my site URL is softaxe.com. In menus>display locations it is showing me this "Your theme supports one menu. Select which menu you would like to use." Kindly guide me if I can still use what you said. – Zain Ul Abdeen Khan Feb 24 '17 at 11:20
  • Yes, you can use it, You need to add link as custom link – Deepti chipdey Feb 24 '17 at 11:27
  • yes this completely works deepti I just need to make the new menu displayed on the new page with the anchors in the format you told me. Can we do this according to the problem discussed above. Thanks a lot for the great help you have provided me with. – Zain Ul Abdeen Khan Feb 24 '17 at 11:28
  • Yes, You can do this. you need to add Menu. This tutorial may help you. – Deepti chipdey Feb 24 '17 at 11:31
1

You need to edit the navigation links – add a slash before the # in the navigation links like this: '/#jump1' instead of just '#jump1'

You will however have to use "Custom Links" instead of "Pages" to do this – see screenshot below:

enter image description here

…should do the trick… 

  • adding the slash worked for me thank you very much for your help. Stack overflow is great and you are great! – Zain Ul Abdeen Khan Feb 24 '17 at 14:17
  • Thank you for your kind words! :) Please feel free to mark the answer as the correct answer and/or up-vote if you think the answer was helpful… – tillinberlin Feb 25 '17 at 11:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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