Shopify themes, liquid, logos, and UX
Hello there!
I'd like to change the header background colour to black and the text to white.
ONLY on this specific https://digitalmemorybox.co.uk/products/memory-capsule page.
I am on the Impulse theme.
Can somebody please tell me how I'd do this?
Much appreciated.
Solved! Go to the solution
This is an accepted solution.
Oh, Just remove that code and replace it with this. Instructions are the same.
<style>
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) ul.site-nav.site-navigation.small--hide > li > a,
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) ul.site-nav.site-navigation.small--hide li > details > summary,
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) .site-header svg {
color: #fff !important;
}
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) header#SiteHeader {
background-color: black !important;
}
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) .site-header .site-header__logo img {
filter: invert(1) !important;
}
</style>
Hey @DigitalMemoryBx ,
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>
ul.site-nav.site-navigation.small--hide > li > a,
ul.site-nav.site-navigation.small--hide li > details > summary,
.site-header svg {
color: #fff !important;
}
header#SiteHeader {
background-color: black !important;
}
.site-header .site-header__logo img {
filter: invert(1) !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Thank you for your reply.
This has worked but has also changed it on the whole site.
I'd like for it to change on this 1 page only (link below)
This is an accepted solution.
Oh, Just remove that code and replace it with this. Instructions are the same.
<style>
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) ul.site-nav.site-navigation.small--hide > li > a,
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) ul.site-nav.site-navigation.small--hide li > details > summary,
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) .site-header svg {
color: #fff !important;
}
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) header#SiteHeader {
background-color: black !important;
}
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) .site-header .site-header__logo img {
filter: invert(1) !important;
}
</style>
Thank you so much! That's worked.
Is there a way to make my hero video on the https://digitalmemorybox.co.uk/products/memory-capsule page to cover the navigation bar/header? So the video goes up into the header.
I'd like the video to go into the header like I have with the image on my home page: www.digitalmemorybox.co.uk
Thank you,
DMB
Can you replace the entire code with this? It's the same code, but modified to fit your new requirement.
<style>
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) ul.site-nav.site-navigation.small--hide > li > a,
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) ul.site-nav.site-navigation.small--hide li > details > summary,
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) .site-header svg {
color: #fff !important;
}
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) header#SiteHeader {
background-color: transparent !important;
}
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) .site-header .site-header__logo img {
filter: invert(1) !important;
}
.header-sticky-wrapper {
position: absolute !important;
width: 100% !important;
}
</style>
Perfect mate thank you. Sorry about that change. Really appreciate it.
Actually this has changed it every page on the site rather than just the https://digitalmemorybox.co.uk/products/memory-capsule page.
Just change it to this @DigitalMemoryBx,
<style>
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) ul.site-nav.site-navigation.small--hide > li > a,
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) ul.site-nav.site-navigation.small--hide li > details > summary,
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) .site-header svg {
color: #fff !important;
}
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) header#SiteHeader {
background-color: transparent !important;
}
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) .site-header .site-header__logo img {
filter: invert(1) !important;
}
html:has(link[href="https://digitalmemorybox.co.uk/products/memory-capsule"]) .header-sticky-wrapper {
position: absolute !important;
width: 100% !important;
}
</style>
Thank you very much! 🙂
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025