Understand Layout Engine Editable Files
After activating Layout Engine, you shall see the entrance of Code Editor on your ADMIN panel, which enables you to change the default template of Privatized Pages’ component by editing relevant files.
There are files for each storefront component, please refer to below table to know which file to start your own customization.
Storefront Fields | Layout Engine File |
---|---|
Header (Including Menu Navigation) | theme.liquid |
Footer | Snippets > footer.liquid |
Shopping Cart | Snippets > cart_panel.liquid |
Product Details Pages | Template > product_detail liquid |
Product details page | Express checkout page & 1-Page Store |
Product Listing Pages | Template > products liquid |
Blog Listing Pages | Template > posts liquid |
Blog Post Pages | post.liquid |
Advance Pages | Template > page.liquid
|
Promotion Related Pages | Template > promotion_page liquid |
Other Shop Pages | Template > 404 liquid |
Email Notifications | email.liquid |
Other Store Layout |
If you want to change CSS style on pages, under the Asset folder, there are CSS files for different storefront pages/components.
You can also create your own css.liquid files and extract certain file on a specific page by adding below code on theme.lliquid:
{% if page.url == '/' %}
{{ 'custom_homepage.css' | asset_source }}
{% endif %}
Updated 2 months ago