I am trying to embed anchor links on a page that was built with sections. I use the Turbo Theme from Out of the Sandbox. Since the page is built in sections, I can’t use the rich text theme editor on the page itself. Also, the page-template.liquid simply has the available sections, not the actual sections used, so I can’t embed there. As I see it, the only place I see reference to the actual spots where I want to anchor are in the settings_data.json. Anyone know how I can implement anchor tags in the .json?
Hi, Could you provide detailed steps (for a non-coder!) in how to do this? I would like two of the items in my Header to link to sections on my homepage, but I can’t figure out where exactly to put the anchor link. Thank you!
Depending on your theme, a lot have a Section called “Custom HTML” or “Custom Content” This is literally a Section where you can put in any HTML/CSS/Javascript you want and it will load. You would add that, and use the above code.
Thanks for the quick reply! I have a “custom-html.liquid” section that already has a bunch of code in there. I’m confused as to where to drop that line of code in. Everyone keeps saying to “place the code above the section you want to link to”, but what does that mean? There aren’t any section names listed in the code. (Sorry, I’m clearly not a coder…and am loathe to hire someone for something seemingly so simple.)
aye, but one thing to remember. Physics is simple to some, and hard for others. Its ok to hire for small things as long as you dont over pay
In the customizer, down the left side you should see the sections you can place and move around. If you don’t, you might have a wicked old theme in which case you would need to go hard code the Anchors in.
Did you manage to find a solution for this @petitlaurierco ?
Trying to add an Anchor Link into an index.json file also (I want to add the anchor link to a “Shop Now” button, then for it to scroll down to another section on the homepage).
@Misfit_Code_Dev I also have the Dawn theme, have updated to the latest version and there is no Custom HTML section available as an option. The only option I can see is to edit the JSON file and I only know how to write plain HTML. So I’m stuck here.