Jump to content

[SOLVED] Add a class in the body - v.1.6 multistore


Recommended Posts

Hello

 

I have a multistore website - prestashop 1.6

 

I would like to add a class in the body of each shop. I don't want to build a new theme for each shop, i just need an specific class in the body (for exemple .theshopname)

 

Sorry for my english, i have been tried in the french forum but no answer...

 

thanks in advance

Edited by bea77 (see edit history)
Link to comment
Share on other sites

In the body of each page, for example:

 

<body class="index hide-left-column hide-right-column lang_fr shopname" id="index">

 

this way, i could make for example in my css styles:

 

.shopname #header{

background-color:red;

}

                

thank you

Edited by bea77 (see edit history)
Link to comment
Share on other sites

instead of shopname is much better to use shop id (why? in shop name you can use spaces - it will not work as a css .class)

 

with id: for example class="shop1" / class="shop2" etc.

 

in header tpl to body class="" definition add:

shop{$cart->id_shop}
  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...