Skip to content

custom-theme

Auto Added by WPeMatico

Magento 2.4 How to override vendormagentoframeworkViewElementTemplateFile using a preference or a plugin in a custom module.?

How to override vendormagentoframeworkViewElementTemplateFileValidator.php using a preference or a plugin in a custom module. Workout: appcodeVendorEditCore1di.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <preference for=”magentoframeworkViewElementTemplateFileValidator” type=”VendorEditCore1frameworkViewElementTemplateFileValidator” /> </config> And my validator.php file path is, Vendor Path : vendormagentoframeworkViewElementTemplateFileValidator.php Custom Module Path: appcodeVendorEditCore1frameworkViewElementTemplateFileValidator.php… Read More »Magento 2.4 How to override vendormagentoframeworkViewElementTemplateFile using a preference or a plugin in a custom module.?

Magento 2 : How to Import Custom Module’s Less file in Custom Theme

I am creating custom theme without parent. Now, I want to add custom less file inside Magento_Theme folder. File path : app/design/frontend/VendorName/ThemeName/Magento_Theme/web/css/source/_mycustom.less I tried to call this file inside app/design/frontend/VendorName/ThemeName/web/css/_sources.less file. But, it’s not working. I added this below line… Read More »Magento 2 : How to Import Custom Module’s Less file in Custom Theme

New extended theme from luma doesnt show style-l or style-m css

I have created the registration.php, theme.xml,composer.json in app/design/frontend/myvendorname/themename_theme/ and _extends.less in app/design/frontend/myvendorname/themename_theme/web/css/source. Ran the following commands rm -r /home/magento/pub/static/* /home/magento/var/view_preprocessed/* /home/magento/var/cache/* cp /root/.htaccess /home/magento/pub/static/ #re-copying htaccess above to static folder just in case it got lost magento cache:flush magento setup:static-content:deploy… Read More »New extended theme from luma doesnt show style-l or style-m css