I’ve looked at those articles before and it didn’t work. So I was looking for a different approach.
Kartik’s suggestions are valid approaches. Any of them will need to be altered to fit your theme’s specific method of displaying logos. If you continue to have difficulty with the suggested solutions, I recommend asking in your theme’s dedicated support channel where its devs and expert users can help you with suggestions specific to your theme.
It appears you are using Astra, their support forum is here:
https://wordpress.org/support/theme/astra/
What are the codes to alter the first solution? The first one changes all of them except homepage, but I only want to change store, product page, cart and checkout pages.
For instance,
body:not(.home) .custom-logo-link {
background-image: url(‘https://www.immortalpavilion.com/wp-content/uploads/2020/09/Black-logo.png’);
background-repeat: no-repeat;
background-size: 100%;
display: block;
position: relative;
height: 85px;
width: 180px;
}
/* Hide the logo image */
body:not(.home) .custom-logo-link img {
display: none;
}
How can I make this code to fit my requirements?
View you page’s source HTML and find a unique class for that page in the body tag. For example, the cart page has page page-id-39. Use it as a selector for the logo styling. For example:
.page page-id-39 .site-logo-img {
display: none;
}
Include every selector like that in a comma separated list for the display none property. Place the resulting CSS in the Additional CSS section of the customizer.
Nothing changes for the corresponding page id.
Also, I am trying to change the color of the cart icon to white in normal view but black in mobile view. How do I do that? Additionally, when I place an item in the cart and hover over the buttons ‘view cart’ and ‘checkout’, the hover color is completely black, how do I change the colors for that as well.
And for some reason, on the menu, when the hover over ‘store’, the submenu background is transparent. How do I change that back to normal background color?
I’m sorry but your needs are more complicated than I’m willing to help you with. You can wait and see if someone with more free time will help you, but I suggest you hire professional help. Ideally you’d want some custom page setting where you can easily specify light or dark schemes without having to add more code anytime you add or change a page. It’ll take some development work, but in the long run I think it’d be worth it.
If you don’t already know of someone who could help you, you can connect with professionals through sites like https://jobs.wordpress.net/ or https://jetpack.pro/