Add custom css to a product page

If you need to add css rules specifically to your product pages then the best is to avoid adding those rules to all pages of your website. You can achieve this but creating (or editing) a catalog_product_view.xml file inside /app/design/frontend/THEME_VENDOR/THEME_NAME/Magento_Catalog/layout or /app/design/frontend/THEME_VENDOR/THEME_NAME/Magento_Theme/layout. Because of the way magento handle theme inheritance the xml code included on this file is added to[…]

Read more