A space to discuss online store customization, theme development, and Liquid templating.
Hi there,
I'm running into an issue trying to do some edits in the code for my website. I want to add a section called 'hero-2' so that I can add it into a custom page (page.learn.liquid). I've already used 'hero' in another custom page (page.about.liquid). However, I get this error message on my website:
"Liquid error: Error in file 'config/settings_data.json' - section type 'hero' and id 'hero-2' must be the same when a section is used inside a 'section' liquid tag."
I was able to add a hero image to another custom page (the About page), but am running into this error message on the second custom page I created. I've used 'hero' on another custom page, so when I add it into the second custom page, the image and photo from that page (the About page) populates onto the second page (the Learn page). I've done a similar process for the sections 'custom-content' and 'custom-content-2' and it's worked great - having the first section on one custom page and the second on another custom page - so I'm not sure why the hero and hero-2 sections are running into this issue. When I use the 'hero' image on both pages, it shows up the same on both and when I change the image on one page, it changes on the other page. Any help or suggestions would be really appreciated!