Tuesday 28 October 2014

add class in body tag in all page in magento


create local.xml file in theme





<?xml version="1.0"?>

<layout version="0.1.0">

    <default>
 
    <reference name="root"><action method="addBodyClass"><className>multi_page</className></action></reference>
 
    </default>
 
    </layout>


try this check it will add multipage calss in all page.

2 comments:

  1. hi,

    is it possible to add the page title as the body class name in each page

    ReplyDelete
  2. Hi,

    How can I add class name as the page title to the body in all pages.
    thanks

    ReplyDelete

Thank You For Comment