Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How to get header and footer in a custom page

How to get header and footer in a custom page

shangao-070
Shopify Partner
2 0 0

Hi all, 

I'm creating a Shopify App in Remix and using App proxy to visit a custom page. Does anyone have an idea how to get header and footer from the active storefront theme on a custom page? Appreciate your help. 

Replies 2 (2)

Liam
Community Manager
3108 344 899

Hi Shangao-070,

 

You should be able to use the Asset API to make a Get request that will return the content of individual theme files, so you could make separate calls to get the header and footer content of a store. 

 

Hope this helps,

Liam | Developer Advocate @ 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

shangao-070
Shopify Partner
2 0 0

Hi Liam, 

Thanks for your advice. Will take a look.