Menu to scroll session page

How do I create a menu and it scroll down to the session?
For example, I want to create the service or portfolio option in the menu and have this menu only scroll the page until the specified session.
I don't want to create another page, use the main page.

Comments

  • Hi @dstecdiego

    Thanks for contacting us.

    For creating a menu and scroll down it, please follow these steps.

    1. Create a child theme, ignore if already existing.
    2. Create a template-frontpage.php file, open and paste this code: https://pastebin.com/raw/ND5TqJ0h
    3. Save and activate it

    Go to appearance >> Menus and create a menu then add custom links in menu. Refer to this screenshot.

    To change the speed of scroll down you can use this plugin.

    For this "only scroll the page until the specified session", you have to use these id's in custom link same as for #service.

    #home-callout, #portfolio, #testimonial, #latest-news, #client, #footer-callout.

    Let me know for any confusion.

    Thanks
  • Hi,
    I did the indicated procedure and yet it had no effect.
    site
    www.dssoft.com.br
  • I was able to make it work by changing the home.php file.
    thanks.
  • Hi

    Glad to help you!

    If you like our Theme & Support, Rate us HERE.

    Thanks
This discussion has been closed.