I am upgrading my site to the Dawn theme, I am not ready to publish yet as my site has lots of custom pages.
I want to create jump links from a menu at the top of a page, so say when one of the links is clicked it jumps down the page to that element,
I have always done it by giving each element a separate id, something like
then the link would be first_element
But on the Dawn theme custom pages are created as Json files, when i “edit code” and look at the relevant json file, i don’t know how to ad in the id.
Say I have this:
“164344492090ad3def”: {
“type”: “image-with-text”,
“blocks”: {
“164344492003224a4b-0”: {
“type”: “heading”,
“settings”: {
“heading”: “CARRY ON TOURING - AMBASSADORS”,
“heading_size”: “h2”
}
},
can i add “id”: “first_element” so it would be like this:
“164344492090ad3def”: {
“type”: “image-with-text”,
“blocks”: {
“164344492003224a4b-0”: {
“type”: “heading”,
“settings”: {
“heading”: “CARRY ON TOURING - AMBASSADORS”,
“heading_size”: “h2”,
“id”: “first_element”
}
},
Would that work?