Shopify themes, liquid, logos, and UX
Hi All,
Hope you are well! I'm using yuva theme and a few things aren't working, but everytime I'm using help from the pages here, the custom css also doesn't work or change anything. Does anybody know how to move further?
The header colour doesn't change in the published store:
Image banner doesn't resize correctly:
Any custom css I've found hasn't changed/affected anything so far..
Thank you for your help.
Solved! Go to the solution
This is an accepted solution.
Hey @Philip7644,
Small error on the code, Just replace it with this one
<style>
@media only screen and (min-width: 992px) {
.shopify-section-main-header header a,
.shopify-section-main-header header svg {
color: white !important;
}
.shopify-section-main-header header span {
color: black !important;
}
}
.shopify-section-main-header header {
background-color: #055146 !important;
}
.shopify-section-main-header header svg {
color: white !important;
}
.navbar-toggler-icon,
.navbar-toggler-icon:after,
.navbar-toggler-icon:before {
background-color: white !important;
}
.yv-image-banner-wrapper img {
object-fit: contain !important;
object-position: initial !important;
position: relative !important;
width: 100% !important;
height: 100% !important;
}
.yv-image-banner-wrapper .image-wrapper {
padding-bottom: 0 !important;
position: relative !important;
display: flex !important;
}
.yv-image-banner-wrapper {
height: 100% !important;
}
</style>
This is an accepted solution.
I don't know if your theme supports the <br> tag.
You can try typing in the theme customizer, but some themes don't allow HTML tags in the content itself.
Minder schermtijd,<br>meer vrije tijd
Hey @Philip7644,
Can you share the link to your store please? Thanks!
Oh apologies, sure @ThePrimeWeb !
It's not live yet, you can use the password "test" on www.schermuit.nl
No worries!
Is this the Image banner you mentioned earlier?
Yes indeed! you can see it cuts off the top in your screengrab.
Hey @Philip7644,
I also changed the header icons and text to white because black wasn't visible with the dark green header.
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
@media only screen and (min-width: 992px) {
.shopify-section-main-header header a,
.shopify-section-main-header header svg {
color: white !important;
}
.shopify-section-main-header header span {
color: black !important;
}
}
.shopify-section-main-header header {
background-color: #055146 !important;
}
.shopify-section-main-header header svg {
color: white !important;
}
.navbar-toggler-icon,
.navbar-toggler-icon:after,
.navbar-toggler-icon:before {
background-color: white !important;
}
.yv-image-banner-wrapper img {
object-fit: contain !important;
object-position: initial !important;
position: relative;
width: 100% !important;
height: 100% !important;
}
.yv-image-banner-wrapper .image-wrapper {
padding-bottom: 0 !important;
position: relative !important;
display: flex !important;
}
.yv-image-banner-wrapper {
height: 100% !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Appreciate it a lot! The header has changed now indeed, it looks very nice!
However, the mediabanner is completely not showing anymore. Even in the editor it's present in the left overview but not showing. Please see screenshots attached for reference.
Halfway there!
The media banner is supposed to be between the white and green block 🙂
This is an accepted solution.
Hey @Philip7644,
Small error on the code, Just replace it with this one
<style>
@media only screen and (min-width: 992px) {
.shopify-section-main-header header a,
.shopify-section-main-header header svg {
color: white !important;
}
.shopify-section-main-header header span {
color: black !important;
}
}
.shopify-section-main-header header {
background-color: #055146 !important;
}
.shopify-section-main-header header svg {
color: white !important;
}
.navbar-toggler-icon,
.navbar-toggler-icon:after,
.navbar-toggler-icon:before {
background-color: white !important;
}
.yv-image-banner-wrapper img {
object-fit: contain !important;
object-position: initial !important;
position: relative !important;
width: 100% !important;
height: 100% !important;
}
.yv-image-banner-wrapper .image-wrapper {
padding-bottom: 0 !important;
position: relative !important;
display: flex !important;
}
.yv-image-banner-wrapper {
height: 100% !important;
}
</style>
Wow @ThePrimeWeb , you are amazing, thank you so much!
One last check: does it matter where on the page I have that media banner or can I just freely place it in a different area of the page with this code?
Really cool, appreciate it!
It shouldn't matter because it's targetting a media banner regardless of position. You should be able to place it anywhere you need.
Super, have checked and it works in other places indeed.
Thanks again, hope you enjoy the well earned coffee 😉
No worries, and thank you!
@ThePrimeWeb could you help me with one more thing please?
In the header image that now says "Minder schermtijd, meer vrije tijd", how can I get "meer vrije tijd" on a new line?
And same for the body text below that heading?
Cheers,
Philip
This is an accepted solution.
I don't know if your theme supports the <br> tag.
You can try typing in the theme customizer, but some themes don't allow HTML tags in the content itself.
Minder schermtijd,<br>meer vrije tijd
You are a legend.
Thanks again.
hey, I have applied your code on banner to not be cropped but the button over the banner goes on top of the banner.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025