For my store i have a video in the background, but its very distracting when looking at the product on the product page, and same for the cart. How can i change it to have a plain white background for only these pages? I have a third party theme aswell which makes it a little harder. Thanks
I understand you want to remove video background on the product details page. Follow these steps to do that
-
Go to Shopify theme manager
-
Edit code of the current theme
-
Open file layout > theme.liquid
-
Add this code to body tag class=“{{ request.page_type }}”
-
Click “Save” button,
-
Open assets > theme.css file, add this code at the end
body.product .video-js {
display: none !important;
}
Try it and let me know
Nothing happened when i added both code
Hi @atria
Another way you can try to add this code into the bottom of the file theme.liquid before tag
{% if request.page_type == 'product' or request.page_type == 'cart' %}
{% endif %}
this one worked thanks
