How do I copy a gallery from home page to a page?

I would like to copy a gallery of products I created for the homepage and create a separate page of them. I tried inserting the code (

) but that doesn’t work.

Hi @kmlcodes ,
it does not work like that, first of all you have to create a section for this purpose and once you have done this, then you need to create a template specifically for this page, otherwise your other pages would be impacted as well, which is not a good practice.

And once you have done both the things then you need to call the section you created on the new page template and copy paste the schema settings from homepage (index.json) to new template file.

You can refer to the below docs:

  1. for creating sections: https://www.shopify.com/in/partners/blog/how-to-create-your-first-shopify-theme-section
  2. Creating a template for pages: https://help.shopify.com/en/manual/online-store/themes/theme-structure/templates#create-a-new-template
  3. Learn more about templates: https://help.shopify.com/en/manual/online-store/themes/theme-structure/templates

NOTE: All the above steps require that you need a good coding knowledge, and if you do not feel confident about working with sections and templates in Shopify then you should hire a developer who could do all these tasks for you. If you want I can do it for you, you just need to drop a personal message once.

Thanks

Thanks for the reply!

Is there a way to just scroll/ jump to the section I created on the homepage instead?It does not need to be a new page

You can use id and href parameters for jumping to a specific section but I am not sure how will that help you on the homepage?

ex: 

Jump to Gallery