pcsparez Posted October 31, 2010 Share Posted October 31, 2010 i have just added a new page 2 my shop and i want 2 change the background color just on that pageany ideas Link to comment Share on other sites More sharing options...
rocky Posted October 31, 2010 Share Posted October 31, 2010 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 More sharing options...
pcsparez Posted November 7, 2010 Author Share Posted November 7, 2010 so where do i find the global css of that page???? Link to comment Share on other sites More sharing options...
rocky Posted November 7, 2010 Share Posted November 7, 2010 It is themes/yourtheme/css/global.css Link to comment Share on other sites More sharing options...
pcsparez Posted November 7, 2010 Author Share Posted November 7, 2010 ok found that cant make heads or tails of it though im a bit stuck Link to comment Share on other sites More sharing options...
rocky Posted November 8, 2010 Share Posted November 8, 2010 Just add the CSS code above to global.css. It doesn't matter where, though putting it after the body block will keep the file neat. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now