Best way to target front page of store via API

Highlighted
New Member
8 0 0

I have a POC that works but I want to know that for all possible store configurations I can reliably target the frontpage of a store. My question is: when I use the /pages API, can I reliably expect that handle => "frontpage" will indicate it is the storefront's home page? Or is there a more reliable means to target the front page of a store?

Thanks once again :)

0 Likes
Shopify Staff
Shopify Staff
97 0 6

Hi Joel,

The Front Page will be used only if it exists, otherwise a default page will be rendered (not accessible through the Pages API). Know that the front page can be deleted by a shop administrator.

 

1 Like