All things Shopify and commerce
Hi,
I want to make my banner not a full screen and I found a solution for it by adding
.banner {
max-width: 1100px !important;
margin: 0 auto;
}
in custome css.
But now I have a problem that I have a strange lines from both sides of banner that I looks like not a part of my color scheme.
Here is a website - oleum.lt
No passwords needed.
Solved! Go to the solution
This is an accepted solution.
Hello @Nickitoz ,
Please add below mentioned CSS code in your store .css file. It will once match the background with your color schema. However, color may change on scrolling & resolve this you have to make changes in .js files.
section#shopify-section-template--19074147287304__image_banner_3qpmGG {
background-image: linear-gradient(rgb(187 206 195),rgb(153 210 176));
}
=> https://prnt.sc/1osXFYMO-mRt
I hope the code helps you.
Thank you.
Hi @Nickitoz
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<style>
section#shopify-section-template--19074147287304__image_banner_3qpmGG div#Banner-template--19074147287304__image_banner_3qpmGG {
max-width: 100% !important;
}
</style>
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
it made it full screen. But I want it to not be a full screen as on my picture and that it would take my colore scheme.
This is an accepted solution.
Hello @Nickitoz ,
Please add below mentioned CSS code in your store .css file. It will once match the background with your color schema. However, color may change on scrolling & resolve this you have to make changes in .js files.
section#shopify-section-template--19074147287304__image_banner_3qpmGG {
background-image: linear-gradient(rgb(187 206 195),rgb(153 210 176));
}
=> https://prnt.sc/1osXFYMO-mRt
I hope the code helps you.
Thank you.
Hi Anshul,
In which css file I need to add this code?
Thank you!
I add it to base.css and it works.
Can you help with .js file editing? What kind of code I need to write there?
Hello @Nickitoz ,
I am glad the above mentioned code helps you.
For changing the color of the section on scrolling, you have to add (js) code in your .json/liquid file. It may be difficult to suggest code directly as for this we have to thoroughly review your store code and it will be a time consuming process.
I suggest you to hire a shopify developer to resolve this issue.
Thank you.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024