3 min read • Updated 2 years 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 (ex: Full Page Cart, Checkout, and Web Receipt)
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.
4Go to your Full Page Cart Template Settings in Foxy here.
5In the "cart template url" field, paste your Full Page Cart template page URL.
6Click the "Cache Your URL" button.
7Before saving, remove this snippet from the cached cart template code.
8Click the "Update Template" button.
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.
3Go to your Checkout Template Settings in Foxy here.
4In the "remote template url" field, paste your Checkout template page URL.
5Click the "Cache Your URL" button.
6Before saving, remove this snippet from the cached checkout template code.
7Click the "Update Template" button.
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.
3Go to your Web Receipt Template Settings in Foxy here.
4In the "remote template url" field, paste your Web Receipt template page URL.
5Click the "Cache Your URL" button.
6Before saving, remove this snippet from the cached web receipt template code.
7Click the "Update Template" button.
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.