Hide Header from collection pages

You about Jasoliya?  Can't find that 'Hang Out' you mention.....anyways regarding the Header can any of the following

be done

1: can the header image be overwritten?

OR

2: can I pull it from my servers in the UK?

Just because you're paranoid doesn't mean they aren't out to get you
0 Likes
Jasoliya
Shopify Expert
4257 569 1058

@JWEMPIRE  you can use same condition for home page and product page differentiation.

{% if template contains 'product' %}
     //Add product code here
{% endif %}

 Let me know if you need help.

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Jasoliya
Shopify Expert
4257 569 1058

@SallyJane  yes, image tag will load different(Or override ) URL on home and product or collection page rest code are same.

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
icbd
Tourist
6 0 0

Hello Jasoliya,

 

I'd like to hide the header and footer on a few of my pages including my 404 page shop.intentionalcbd.com/pages/40dlg 

how can i accomplish this using the debut theme.

 

Thanks,

J

0 Likes
Jasoliya
Shopify Expert
4257 569 1058

you can make condition in layout->theme.liquid file like

 

{% unless template contains '404' %}
     {% section 'footer.liquid' %} //or here is your existing footer code that's in theme.liquid file.
{% endunless %}

You can make same condition for header and other pages 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
Sid888
New Member
8 0 0

What would I add to that code to remove the header totally from collection and product pages would “display: none” somewhere work ?

0 Likes
Jasoliya
Shopify Expert
4257 569 1058

Send your store url

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Sid888
New Member
8 0 0

archivedbyalex.com

pw: Thankyou123

0 Likes
Jasoliya
Shopify Expert
4257 569 1058

Add this code in layout/theme.liquid file before </body>

{% if template contains 'collection ' or template contains 'product' %}
     <style>
            .site-header{display:none;}
    </style>
{% endif %}
Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Sid888
New Member
8 0 0

You're a legend mate thank you so much! 

love

Alex

0 Likes