Skip to main content
added 4 characters in body; edited tags
Source Link

I was trying to add a camelCased class into the body tagadd a camelCased class into the body tag, is there some way to do it? I'm using this:

<reference name="root">
  <action method="addBodyClass"><classname>camelCasedClass</classname></action>
</reference>

But it outputs:

<body class="catalog-category-view camelcasedclass">

Obviously i could change the class name, but it come from a third party lib and I don't wanna change it.

I was trying to add a camelCased class into the body tag, is there some way to do it? I'm using this:

<reference name="root">
  <action method="addBodyClass"><classname>camelCasedClass</classname></action>
</reference>

But it outputs:

<body class="catalog-category-view camelcasedclass">

Obviously i could change the class name, but it come from a third party lib and I don't wanna change it.

I was trying to add a camelCased class into the body tag, is there some way to do it? I'm using this:

<reference name="root">
  <action method="addBodyClass"><classname>camelCasedClass</classname></action>
</reference>

But it outputs:

<body class="catalog-category-view camelcasedclass">

Obviously i could change the class name, but it come from a third party lib and I don't wanna change it.

Source Link
Di36o
  • 21
  • 3

how to add class camelCased to body

I was trying to add a camelCased class into the body tag, is there some way to do it? I'm using this:

<reference name="root">
  <action method="addBodyClass"><classname>camelCasedClass</classname></action>
</reference>

But it outputs:

<body class="catalog-category-view camelcasedclass">

Obviously i could change the class name, but it come from a third party lib and I don't wanna change it.