Hide footer menu on certain pages

Highlighted
Tourist
19 0 2

Hey!

I am working in Debut theme. I am in a situation, where I would really like to hide the footer that I am using on my product pages on for example the home page. I have done some research and I realize that this is some changes that need to happen in the theme.liquid file. I have for exapmle tried  creating a new footer.liquid file in sections and "calling it" in the theme.liquid not no results yet. 

 

Does anyone have experience with doing this in the debut theme?

 

0 Likes
Highlighted
Shopify Partner
661 133 153

Hello,

{%- if template == 'index'-%}
    {% section 'footer' %}
{%- else -%}
    {% section 'your_new_footer' %}
    {%- endif -%}
Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
0 Likes
Highlighted
Explorer
100 8 15

There are few ways to do this.

 

1 way is this : see the highlighted minus {% section 'footer'%}

fg.JPG

 

Another way is put inside footer and can use the Customize console.But is more complicated.

0 Likes
Highlighted
Globetrotter
577 56 60

if you want to just hide footer you can use CSS, if you can provide me website url then I can let you know the code

 

 

you are welcome to contact / donate small amount to me.
My email - suyash.patankar@gmail.com

paypal.me/suyashpatankar
0 Likes
Highlighted
Tourist
19 0 2

Hey @Guleria

 

Thanks for your reply! Do you mean that this piece of code should go in the bottom of the theme.liquid file?

 

Kind regards Carina

0 Likes
Highlighted
Tourist
19 0 2

Hey @Dayton

 

Thanks for your reply! Do you mean that I should delete the highlighted section in the theme.liquid file, or in the footer file, or?

 

Kind regards Carina

0 Likes
Highlighted
Tourist
19 0 2
0 Likes
Highlighted
Globetrotter
577 56 60

what is the password to view pages?

you are welcome to contact / donate small amount to me.
My email - suyash.patankar@gmail.com

paypal.me/suyashpatankar
0 Likes
Highlighted
Explorer
100 8 15

 

Thanks for your reply! Do you mean that I should delete the highlighted section in the theme.liquid file, or in the footer file, or?

 

No.Find the line in theme.liquid that contains '{% section 'footer' %}'.

Then add the 1st and 3rd line in highlight posted above on top and bottom of {% section 'footer' %}

 

You will then replace the words in green on the 1st line with your product handle.

0 Likes
Highlighted
Tourist
19 0 2

Hey @Dayton!

 

This is what i did in my code, unfortunately it is still not working.Skærmbillede 2020-03-27 kl. 17.20.21.png

0 Likes