Hi Urbantis!
Liam here from Shopify - thank you for your question :)
Great to see you are looking to add anchor links to your pages so let's see how you can set this up. There is a good explaination of how you can create anchor links here. Basically you would need to assign an ID to a link which matches the ID of an element of this page. Then when you click on the link, the browser will jump to the element which matches the link's ID.
Hope this helps Urbantis, if you have any other questions, just let me know!
Cheers,
Liam
Shopify Guru
support@shopify.com
Liam | Developer Community Manager @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi Liam,
I've been looking all over trying to find steps to do this for the Debut theme on the home page. In my scenario, links at the top of the site should jump to different sections of the home page.
Aprpeciate any help.
I too am having the same problem, I am using the Debut theme and I've read everything I can find but none of them apply to this most basic theme. I am loathe to pay for a theme just so I can have this very simple feature that any other website can do.
Of course it doesn't tell you where to put it, everyone's going to want to put it in a different spot. What exactly are you trying to do? Maybe I can help you figure out where you need to go.
So you'll need to know if your footer container has an ID, or even the newsletter maybe. If it doesn't you'll need to add it. You can right click and inspect your footer to pull up the html and look for an id.
Anyway, in your WYSIWYG editor for your page you can view the HTML that it generates and also add your own custom HTML. You do that by toggling the little button in the top right [<>]:
And that will show you your html for that page. So assume I wanted to click "Content!" to take me to your footer. Toggle the html and you'll see this:
So you'll want to add your anchor link around Content!:
Assuming "footer-id" is your footer's id value. Since your footer probably isn't that big, it will take you as far as you can. Probably to the end of the page.
User | Count |
---|---|
395 | |
200 | |
145 | |
42 | |
40 |