widgets - How to point menu to my homepage

So basicially i have a long-long homepage where you can scroll down and find a services section, if you scroll down more

So basicially i have a long-long homepage where you can scroll down and find a services section, if you scroll down more you see important informations and etc. but i have a menu. I want to make the buttons on the menu to scroll me down to that section so for example if i click sercives it scrolls me down to services on my main page

So basicially i have a long-long homepage where you can scroll down and find a services section, if you scroll down more you see important informations and etc. but i have a menu. I want to make the buttons on the menu to scroll me down to that section so for example if i click sercives it scrolls me down to services on my main page

Share Improve this question asked May 11, 2019 at 12:52 D.TomiD.Tomi 31 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

You will need to add "Custom Links" to your menu to point to the homepage + the specific anchor on the page.

For example, your services section may have the markup:

<section id="services">
   <h2>Services</h2>
   <p>Some text</p>
</section>

So your custom menu link would need to have a URL of /#services. You need the / slash at the start so that if someone clicks the menu from elsewhere in the site, it will first go to the homepage and then link to services, rather than trying to look for that ID on the current page.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745502571a4630483.html

相关推荐

  • widgets - How to point menu to my homepage

    So basicially i have a long-long homepage where you can scroll down and find a services section, if you scroll down more

    2小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信