Shopify themes, liquid, logos, and UX
Hi everyone, I have a problem that I can't solve and I would like your help. So my header text and my logo are dark because I want them to be that way on all pages except the homepage. So I don't know if it's possible but I would like to insert a clear logo on my homepage and clear icon colors, WITHOUT CHANGING THE COLOR ON THE OTHER PAGES.
I don't know if it's possible, but thank you for your availability. A thousand thanks
https://refade-8966.myshopify.com/
password: refade
Solved! Go to the solution
This is an accepted solution.
The solution I can think without needing a developer edit your theme code is as follows.
<body class="gradient{% if settings.animations_hover_elements != 'none' %} animate--hover-{{ settings.animations_hover_elements }}{% endif %}">
{% if template.name == "index" %}
<style>
header.header.header--middle-left.header--mobile-center.page-width.drawer-menu.header--has-menu.header--has-social.header--has-account {
filter: invert(1);
}
</style>
{% endif %}
See code placement here
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @Marco211
As what I understand, you want to change the logo to clear, but not change the background which is black? Yes, you can use a PNG image for your logo with transparent background, but I suggest to change the color to white or lighter color, so your logo is visible
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
No, maybe I explained myself badly, I have black as the color of the header icons and the logo I uploaded is black and I would like it to be like this on all pages except the homepage. On the homepage my header is transparent and unfortunately having my black logo and black header icons I can't see anything, so I would like to upload a clear logo to the homepage and I would like the homepage header icons to be white
This is an accepted solution.
The solution I can think without needing a developer edit your theme code is as follows.
<body class="gradient{% if settings.animations_hover_elements != 'none' %} animate--hover-{{ settings.animations_hover_elements }}{% endif %}">
{% if template.name == "index" %}
<style>
header.header.header--middle-left.header--mobile-center.page-width.drawer-menu.header--has-menu.header--has-social.header--has-account {
filter: invert(1);
}
</style>
{% endif %}
See code placement here
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Wow, thank you very much, it work
Glad it did. Thank you as well
Hello, can you help me with a similar problem? On all my other pages I have the icons black, but I would like to have them white only on the main page.
I would also like to change just the logo for the main page without changing the others.
Thank you soo much!
Would you mind sharing your store URL? Thanks!
Is there a way you can help me without it? The website has information that I cannot make public at this time
If still not publish yet, you can send a message. Thanks!
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