Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Shopify Community Downtime: The Shopify Community will be down December 5th for 15 minutes between 3pm and 4pm EST. Thank you for your understanding.

Header background not with full width

Solved

Header background not with full width

OMN-Shopppen
New Member
11 0 3

Hello. 

 

I Have used this code to get background in the header

 

Skærmbillede 2024-11-29 kl. 13.27.56.png

 

 

header.header {
background: url("https://cdn.shopify.com/s/files/1/0863/3394/8231/files/Design_uden_navn_-_2024-11-29T131902.647.png?...") no-repeat;
background-size: 100%;
}

 

But it is not full width. What to do?

 

I have already tried to change theme settings > layout > page width > to full - but this does not solve the problem

Accepted Solution (1)

ZestardTech
Shopify Partner
5907 1067 1412

This is an accepted solution.

Hello @OMN-Shopppen 

 

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > base.css and paste this at the bottom of the file:

 

header {
max-width: 100%!important;
}

 

ZestardTech_0-1732884525178.png

 

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing

View solution in original post

Replies 5 (5)

Mehran_Ali
Shopify Partner
415 52 65

Hi @OMN-Shopppen 

 

Can you share your Store URL and password if it password protected 

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

OMN-Shopppen
New Member
11 0 3
Mehran_Ali
Shopify Partner
415 52 65

Okay 

You just need to follow these steps:

1) Go to the Online Store
2) Edit Code
3) Find theme.css / base.css


And past that CSS Code:

header.header:after {
    content: '';
    background: url("https://cdn.shopify.com/s/files/1/0863/3394/8231/files/Design_uden_navn_-_2024-11-29T131902.647.png?...") no-repeat;
    background-size: 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

header.header> * {
    position: relative;
    z-index: 4;
}

The result will be 

Mehran_Ali_0-1732884398097.png


this is the proper way to add an image because you are using the image without customizer option I can help you add an option into the header for image replace and change in future kindly send the collaboration code in private I will help you if you want otherwise this solution work for you 



I hope this solution works for you!
If it does, please Like It and Mark It As A Solution, or support me by Buying Me A Coffee to keep me going!

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

ZestardTech
Shopify Partner
5907 1067 1412

This is an accepted solution.

Hello @OMN-Shopppen 

 

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > base.css and paste this at the bottom of the file:

 

header {
max-width: 100%!important;
}

 

ZestardTech_0-1732884525178.png

 

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing

topnewyork
Globetrotter
748 124 139

Hello, @OMN-Shopppen 

1) Go to Online Store
2) Edit Code
3) Find theme.css/base.css file
4) Add the following code in the bottom

@media screen and (min-width: 990px) {
    .header:not(.drawer-menu).page-width {
        padding-left: 5rem;
        padding-right: 5rem;
        max-width: 100%;
    }
}

 Thanks!

Need a Shopify developer?
Hire us at Top New York Web Design
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Try Big Bulk Discount To Boost Your Store Sales with Volume/Tier Discount