Magento add new class accourding to your module and you

add class with php

if ($root = $this->getLayout()->getBlock('root')) {
    $root->addBodyClass('whatever');
}
 
and xml
 
<reference name="root">
    <action method="addBodyClass"><classname>whatever</classname></action>
</reference> 

stiki menu jquery simple

How to check if Magento is running in production mode or developer mode

If you want to know. your Magento 2 website is running on which environment you can run below command on terminal and very easily you can kn...

Popular Posts

Posts