2 min read • Updated a day ago
Add a custom header and footer to your Foxy templates in Webflow
In this tutorial, we'll show you how to add a custom header and footer to your Foxy templates in Webflow. Please follow the steps within each section.
All Templates
1In Webflow, create a page for each template you want to add a custom header/footer to (ie: Full Page Cart, Checkout, and Web Receipt). These will be separate from Webflow Ecommerce's default ecommerce pages.
2Add your own header and footer elements to each page.
3In between the header and footer elements add an HTML Embed element.
4Give your HTML Embed element an ID of "fc".
5In each page's Inside <head> tag section, copy/paste the snippet from here.
6In each page's Before </body> tag section, copy/paste the snippet from here.
Full Page Cart Template
1In your Full Page Cart template page in Webflow, give your body element a custom attribute with the Name data-fc-context and Value {"cart_is_fullpage":true}
2Copy/paste the snippet from here into the HTML Embed element between your header and footer elements.
3Publish your changes and take note of the URL of your Full Page Cart template page.
5In the Template URL field, paste your Webflow Full Page Cart URL.
6Click the save button (at top right of page).
Checkout Template
1In your Checkout template page in Webflow, copy/paste the snippet from here into the HTML Embed element between your header and footer elements.
2Publish your changes and take note of the URL of your Checkout template page.
4In the Template URL field, paste your Webflow Full Page Cart URL.
5Click the save button (at top right of page).
Web Receipt Template
1In your Web Receipt template page in Webflow, copy/paste the snippet from here into the HTML Embed element between your header and footer elements.
2Publish your changes and take note of the URL of your Web Receipt template page.
4In the Template URL field, paste your Webflow Full Page Cart URL.
5Click the save button (at top right of page).
Can't remove "Made in Webflow" badge
The "Made in Webflow" badge will not show once you've cached template URLs using a custom Webflow domain.
Changes to templates not showing in Foxy
If you make any changes to your Foxy templates in Webflow, you must re-cache the modified page URL in Foxy.