I’m having an issue when applying a custom product template to certain products - it is affecting the background colour of my logo in the header on the product pages.
Some background:
my logo in the header is a .png image file, with no background.
I’m using the debut theme.
For some products I want to remove the “Add to cart” and “Buy it now” buttons.
To do this, I created a copy of the Product.liquid file, and then also created a copy of the Section.liquid file.
In the Section.liquid file, I queried the parts of the code for these 2 buttons, and commented them out using {% comment %} and {% endcomment %}.
Now when I view these web pages, my logo has a light grey background behind it. I’m not sure why it is doing this.
On other product pages still using the original .liquid files, the logo displays correctly as it should, without any background (i.e the entire header is white).
Can someone please assist me with this? I’m looking to launch my store next week, but it looks rather silly that some product pages have this grey block behind the logo in the header.
In this first screenshot, the Add to Cart button is still visible, note how the logo in the header has a transparent background, so it overlays nicely on the white of the header:
Now, in this next pic, I’ve commented out the Add to Cart button in the code of the custom Section.Liquid form. The button is now hidden (as expected), but now the logo has a grey background in the header:
I ended up logging a call with Shopify support. It turns out that there is a bug in the older code of the Debut theme. They then updated some code somewhere and now my issue is resolved.
Contact them and see if they can help. You also have some free support hours as far as I know.
Hi @jlove_1
so sorry for my mistake.
You can try follow this path:
Themes => edit code => asset => theme.css.liquid
and add this code to bottom of the file theme.css.liquid