How to make header not overlap on product page

How to make header not overlap on product page

seiza123
Excursionist
24 0 7

Hello i am looking for advice on if it possible to fix this... i found some custom coding to make the header transparent and overlap an image. It looks good on my homepage but not on my product page. Is there any way to solve?

 

p.s. it is a lot worse when viewed on mobile

 

store is shopseiza.com

 

seiza123_0-1726394338155.png

seiza123_1-1726394381352.png

 

Replies 7 (7)

BSSCommerce-HDL
Shopify Partner
2305 848 1062

Hi @seiza123

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
header.header {
    width: 100% !important;
    max-width: 100% !important;
}
</style>

 Here is result: 

BSSCommerceHDL_0-1726394862595.png

 

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

seiza123
Excursionist
24 0 7

Thankyou, that worked to make the header span the entire screen, however is there a way to separate it from the product images in product page but it leave it overlapping the image on homepage?

 

seiza123_0-1726395227343.png

 

BSSCommerce-HDL
Shopify Partner
2305 848 1062

Hi @seiza123

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
header.header {
    position: unset !important;
}
</style>

 

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you  😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

seiza123
Excursionist
24 0 7

I appreciate the help!

I have worked out a solution... I added a custom liquid to the product page and left it empty. It seems to have worked!

seiza123
Excursionist
24 0 7

Hello, I appreciate the reply. This moves the header off the image on the homepage. I would like to leave it where it is on the homepage but lift it off on every other page so it doesnt overlap any content. 

 

thanks

seiza123
Excursionist
24 0 7

the header also doesnt span the entire screen on product page

 

Dan-From-Ryviu
Shopify Partner
9581 1926 1962

Hi @seiza123 

Please wrap the code you used to have a transparent header into this code below and add it to theme.liquid file, after <head> 

{% if template == 'index' %}
<style>
// your code goes here
</style>
{% endif %}

 

- Helpful? Like and Accept solution! or Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.