Jump to content

change page color


Recommended Posts

Change line 40 (in PrestaShop v1.3.1) of header.tpl in your theme's directory from:

<body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}>



to:

<body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}{if $smarty.get.id_cms} class="cms{$smarty.get.id_cms}"{/if}>



That will add a unique class to each of your CMS pages. You can then add the following to global.css to change the background colour of the page:

body.cms1 { background-color: black }



Change 1 to the ID of the CMS page you want to change.

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...