Web Analytics

Fill the form & Get Installation Support

Any Question or Concerns?
Let's discuss





    Magento 2: How to add store code to body class in multi store view?

    Related articles

    In some cases, you will need to add a class to the body tag of your Magento stores. To process it, you’ll need to set-up an event observer for the layout_render_before event.

    1. Create file events.xml on app/code/Magemonkeys/Addbodyclass/etc/frontend

    2. Create file LoadBefore.php on app/code/Magemonkeys/Addbodyclass/Observer/Frontend/Layout

     

     

    Contact us for scientific strategies to increase your site conversions





      Connect With Us