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
Shopify Staff
2838 311 810

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.