How can I remove footers from specific pages on my website?

Hello

I’m trying to remove footers from 2 pages. I’m able to remove it from my /spin-to-win page with:

{% unless page.handle == 'spin-to-win' %}
  {% section 'footer' %}
{% endunless %}

Now I also need to remove it from my /lucky-wheel page.I tried using or operator.

{% unless page.handle == 'spin-to-win' or 'lucky-wheel' %}
  {% section 'footer' %}
{% endunless %}

And this removed footers from my entire store. I also tried and operator and that didn’t change anything.

I also tried entering both pages separately, like that:

{% unless page.handle == 'spin-to-win'%}
  {% section 'footer' %}
{% endunless %}

{% unless page.handle == 'lucky-wheel' %}
  {% section 'footer' %}
{% endunless %}

But that just gave me 2 footers on all my pages.

Any idea how I could remove footers from only /spin-to-win and /lucky-wheel pages?

Thanks

Hi @VolkovR
You can try to use this code

{% unless page.handle == 'spin-to-win' or page.handle == 'lucky-wheel' %}
  {% section 'footer' %}
{% endunless %}

@VolkovR

Please share your store URL!

Thanks!

Thank you @experto

This worked perfectly!