Skip to content

theme

Auto Added by WPeMatico

Magento 2 – Change theme for product to “Magento Blank” not working – invalid template file

I try to change the theme for a product to the default Magento Blank theme. But I get this error: Exception #0 (MagentoFrameworkExceptionValidatorException): Invalid template file: ‘Company_Base::header/mobile/icons/search.phtml’ in module: ” block’s name: ‘mobile-search’ The file Company_Base::header/mobile/icons/search.phtml is from my custom… Read More »Magento 2 – Change theme for product to “Magento Blank” not working – invalid template file

Update Magento default product placeholder images within theme files

I’m trying to override the default Magento logo product placeholder images within my theme, however, the results are inconsistent. I added 4 image files in the following location app/design/frontend/[VENDOR]/[THEME]/Magento_Catalog/web/images/product/placeholder/ image.jpg small_image.jpg swatch_image.jpg thumbnail.jpg Then I ran the following just to… Read More »Update Magento default product placeholder images within theme files

New to Magento phtml code doesn’t show

I’ve been trying to add phtml to my custom theme but it doesn’t show for example <block class=”MagentoCatalogBlockProductView” name=”product_view_custom_block” before=”-” template=”Magento_Catalog::product/view/custom_block.phtml”/> path for xml is <theme_name><theme>Magento_Cataloglayoutcatalog_category_view.xml path is <theme_name><theme>Magento_Catalogproductviewcustom_block.phtml the template=”” what should I put inside the double quotes? Did… Read More »New to Magento phtml code doesn’t show