Automatic scroll after page loading(site in wordpress)

Asked

Viewed 46 times

0

Hello,

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

My wish is that by clicking on a link from the sub-menu, I upload the Products page and scroll to the respective category to the link.

Thank you

1 answer

0

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

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

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

  • The idea would be for the page to load at the top, and the user to notice the scroll

Browser other questions tagged

You are not signed in. Login or sign up in order to post.