admin管理员组文章数量:1429429
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 badge1 Answer
Reset to default 0You 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.
本文标签: widgetsHow to point menu to my homepage
版权声明:本文标题:widgets - How to point menu to my homepage 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745502570a2661099.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论