How can I hide the footer on my product page using the Craft theme?

Topic summary

A user wants to hide the footer specifically on product pages while using the Craft theme.

Solution provided:

  • Navigate to Online Store → Theme → Edit code
  • Open the theme.liquid file
  • Insert custom code before the </body> tag that conditionally hides the footer when the URL contains ‘products’
  • The code uses Liquid templating to check if the canonical URL includes ‘products’ and applies CSS to hide the footer markup accordingly

Outcome: The original poster confirmed the solution worked successfully.

Summarized with AI on November 21. AI used: claude-sonnet-4-5-20250929.

Hi everyone, for some reason I want to hide the footer only on my product page. How can I achieve that. I appreciate any help (Craft theme)

Hi @rimar ,

This is Victor from PageFly - Landing page builder, I’d like to suggest this idea for solution:

Step 1. Go to Online Store → Theme → Edit code
Step 2. Open your theme.liquid theme file
Step 3. Paste below code before :

{% if canonical_url contains 'products' %}
  
{% endif %}

Hope my answer will help you.

Best regards,

Victor | PageFly

1 Like

Awesome, thank you