Hide Header from collection pages

How can I hide the header in collection and product pages and replace with smaller image ~ Thanx

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

Hi,

Which theme you have?

For that you have to add condition in liquid like bellow

{% if template contains 'collections' or template contains 'product' %}
//Add you image code here
{% else %}
//Add header 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

Thanx for a swift reply Jas the theme is a Shopify standard Expression at www.sallyjanespies.co.uk

Just because you're paranoid doesn't mean they aren't out to get you
0 Likes

Not back online now till 1800 GMT ~ Gotta make 100's of pies :-)))

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

Set my given code in theme.liquid file and let me know if it work or add me as staff i will help. text me on Skype 

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

Image I want is 'sallyjanesmall.png

current header is 'logo.png

both located in the cdn server

So what is the code line look?

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

Do this:

{% assign img_path='logo.png'%}
  {% if template contains 'collection' or template contains 'product' %}
      {% assign img_path='sallyjanesmall.png'%}
 {% endif %}
  <img src="{{ img_path | asset_url }}" />

Note: Add this condition in header file where image tag located and replace  {{ img_path | asset_url }} with your current image tag src

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
JWEMPIRE
New Member
2 0 0

Hello,

I'm looking to do the same for the Gecko Shopify Theme. It has a "Top Header and a "Header" that I'd like to remove for product pages and collection pages.

 

Thanks!

JW

0 Likes
@JWEMPIRE wrote:

Hello,

I'm looking to do the same for the Gecko Shopify Theme. It has a "Top Header and a "Header" that I'd like to remove for product pages and collection pages.

 

Thanks!

JW


Just because you're paranoid doesn't mean they aren't out to get you
0 Likes

I got it done

Just because you're paranoid doesn't mean they aren't out to get you
0 Likes