How do I send user from one page to specific part of another page in WordPress?
For example when the user clicks the link on page 1, he should be redirected to specific part of page 2. Like MakeUseOf has in their “Best Of” section.
If we click on Antivirus option, it sends us to section with the list of AV. Likewise for other options. But I need this to work for redirecting page to another.
Similar question :
http://www.makeuseof.com/answers/create-link-jump-subsections-website
Hi Niks,
You need to create a 'bookmark'. Find the element of the page that represents the data you want to link to and assign it an ID. Then, when you hyperlink to it just append "#TheIdYouCreated" where "TheIdYouCreated" is the ID you assigned to the tag.
Here is an example:
<!-- The ID you want to link to -->
<p id="Software">Here is the best software!</p>
<!-- The link to the ID (replace 'site.com' with your domain and 'page.html' with the relative location of the script -->
<a href="site.com/page.html#Software">Go to software</a>
Thanks a lot !! It worked . BTW will this also work for Blogger/Blogspot ?
Niks,
Your welcome! Yes, this will work for blogger as well.
Thanks again :)