FROM CACHE - en_header

Hide Header from collection pages

SallyJane
Tourist
11 0 1

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
Replies 19 (19)
Jasoliya
Shopify Expert
4534 586 1148

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.
Want to convert visitor to buyers ? try This app.
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
SallyJane
Tourist
11 0 1

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
SallyJane
Tourist
11 0 1

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
Jasoliya
Shopify Expert
4534 586 1148

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.
Want to convert visitor to buyers ? try This app.
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
SallyJane
Tourist
11 0 1

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
Jasoliya
Shopify Expert
4534 586 1148

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.
Want to convert visitor to buyers ? try This app.
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
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

SallyJane
Tourist
11 0 1
@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
SallyJane
Tourist
11 0 1

I got it done

Just because you're paranoid doesn't mean they aren't out to get you
SallyJane
Tourist
11 0 1

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
Jasoliya
Shopify Expert
4534 586 1148

@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.
Want to convert visitor to buyers ? try This app.
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
Jasoliya
Shopify Expert
4534 586 1148

@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.
Want to convert visitor to buyers ? try This app.
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
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

Jasoliya
Shopify Expert
4534 586 1148

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.
Want to convert visitor to buyers ? try This app.
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 ?

Jasoliya
Shopify Expert
4534 586 1148

Send your store url

Want to modify or custom changes on store hire me.
Want to convert visitor to buyers ? try This app.
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

archivedbyalex.com

pw: Thankyou123

Jasoliya
Shopify Expert
4534 586 1148

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.
Want to convert visitor to buyers ? try This app.
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

You're a legend mate thank you so much! 

love

Alex