Automatic scrolling after page load (site in wordpress)

0

Hello,

I have a sub-menu with Product categories, and a page called "Products" where you can list all types of products (post types), separating them by categories online.

My wish is that by clicking on a sub-menu link, I'll load the Products page and scroll down to the respective category of the link.

Thank you

    
asked by anonymous 15.10.2017 / 18:43

1 answer

0

Let's say you clicked the link to the product section a, just do so:

<a href="www.seusite.com.br/#produtoA">Produto a</a>

that #productA is just the id of the section of the page you want to go to. This works within the same page and without reloading. If this menu is within the same page you want you can use only #produtoA .

    
15.10.2017 / 19:07