flixbo Posted May 30, 2012 Share Posted May 30, 2012 Hi I want to do a background image via css for the home page only. Can I insert css in the home text editor? If I do this, the css code disappears after saving the home site. any idea? best felix Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted May 30, 2012 Share Posted May 30, 2012 Why don't you just use the global.css to accomplish this? I don't think home text editor is what you are looking for. Marty Shue Link to comment Share on other sites More sharing options...
flixbo Posted May 30, 2012 Author Share Posted May 30, 2012 hi Marty, I tried, but I want the backgound image only on the start page. can I do this?? Felix Link to comment Share on other sites More sharing options...
flixbo Posted May 30, 2012 Author Share Posted May 30, 2012 ah, and theres another thing: the body of my shop has a width of 800px. but for the background image i want have a fullscreen image so i have this css code: background: url('../img/home.jpg') no-repeat center center fixed; background-position:0 80px; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; but where to put it in??? Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted May 31, 2012 Share Posted May 31, 2012 hi Marty, I tried, but I want the backgound image only on the start page. can I do this?? Felix Yes, you can do this. Just add something like the following to global.css. body#index{ background:#000; } This will change ONLY the index page background to black. Of course, change it to the background you want to use. Hope that helps! Marty Shue Link to comment Share on other sites More sharing options...
flixbo Posted May 31, 2012 Author Share Posted May 31, 2012 oh great, it works, so awesome!! can I use this way to add some css to specific CMS sites too? for instance to change the background color only of the page "legal notice" ?? really cool! Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted May 31, 2012 Share Posted May 31, 2012 oh great, it works, so awesome!! Glad it worked for you! can I use this way to add some css to specific CMS sites too? for instance to change the background color only of the page "legal notice" ?? really cool! You could but it is a little more involved when talking about a specific CMS page. You can do the following but it will change the bg on all CMS pages. body#cms{ background:#000; } Marty Shue Link to comment Share on other sites More sharing options...
flixbo Posted June 1, 2012 Author Share Posted June 1, 2012 ok I see. great so far. is it possible to involve CSS in the CMS -Editor directly? and my last question to this topic: can I design several produkt pages with different design? for instance one design with product picture on left side and another with product picture on right side (and order button vice versa)? maybe theres a plugin for that? or does every product page has a unique tag? thank you for all your help!!!! Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted June 1, 2012 Share Posted June 1, 2012 ok I see. great so far. is it possible to involve CSS in the CMS -Editor directly? You can include inline styling but this is not a good practice. CSS should be left to your stylesheets. and my last question to this topic: can I design several produkt pages with different design? for instance one design with product picture on left side and another with product picture on right side (and order button vice versa)? maybe theres a plugin for that? or does every product page has a unique tag? thank you for all your help!!!! I have never done this, nor have I seen it done. To my knowledge you cannot do it. Marty Shue Link to comment Share on other sites More sharing options...
flixbo Posted June 3, 2012 Author Share Posted June 3, 2012 ok, thank you for your answer. Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted June 4, 2012 Share Posted June 4, 2012 You are welcome! I hope you get everything working. Marty Shue Link to comment Share on other sites More sharing options...
pmlvfs Posted January 15, 2013 Share Posted January 15, 2013 Worked for me, great help. Thank you Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted January 15, 2013 Share Posted January 15, 2013 You are welcome. Glad to hear it helped you as well. Marty Shue Link to comment Share on other sites More sharing options...
RickieSee Posted June 12, 2013 Share Posted June 12, 2013 Marty, I would like to do the same: change background colour on my index page only, however I have a DIV ID overlaying the body background. #page { background-color: #FFFFFF; border-top-style: solid; border-top-width: 0; } How can I add an index-only addition to the CSS #page ID? Thanks so much man! Link to comment Share on other sites More sharing options...
vekia Posted June 13, 2013 Share Posted June 13, 2013 in the header.tpl file (in your theme directory) add this: {if $page_name=="index"} {literal} <style> #page { background-color: #FFFFFF; border-top-style: solid; border-top-width: 0; } </style> {/literal} {/if} 1 Link to comment Share on other sites More sharing options...
RickieSee Posted June 13, 2013 Share Posted June 13, 2013 in the header.tpl file (in your theme directory) add this: {if $page_name=="index"} {literal} <style> #page { background-color: #FFFFFF; border-top-style: solid; border-top-width: 0; } </style> {/literal} {/if} YOU ARE THE MAN! Thanks dude! Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted June 13, 2013 Share Posted June 13, 2013 YOU ARE THE MAN! Thanks dude! IMHO there is a cleaner way of doing this. That doesn't require adding CSS to the header.tpl. #index #page { background: #fff; border-top-style: solid; border-top-width: 0; } Obviously, you will need to keep your original #page CSS as well. Hope that helps! Marty Shue 1 Link to comment Share on other sites More sharing options...
RickieSee Posted June 13, 2013 Share Posted June 13, 2013 Thanks Marty - will try both! Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted June 13, 2013 Share Posted June 13, 2013 Thanks Marty - will try both! You are welcome! We use this solution regularly with our clients. Marty Shue Link to comment Share on other sites More sharing options...
LauraPresta Posted February 20, 2016 Share Posted February 20, 2016 Hello guys, How could i know all the specific css div page possible ? like #index, #cms, ... Because i have a blog and forum and would like to do the same, #blog or #forum wont work Link to comment Share on other sites More sharing options...
Knowband Plugins Posted February 25, 2016 Share Posted February 25, 2016 If you don't want to modify your core files, you can use below module to add custom CSS on any particular page without modifying any code. http://addons.prestashop.com/en/page-customization/21546-knowband-custom-css-and-js.html Link to comment Share on other sites More sharing options...
wielkablaga Posted June 24, 2017 Share Posted June 24, 2017 Can I add some css only for smart blog module pages? Link to comment Share on other sites More sharing options...
LauraPresta Posted June 24, 2017 Share Posted June 24, 2017 show your page url and ill tell you Link to comment Share on other sites More sharing options...
rictools Posted June 25, 2017 Share Posted June 25, 2017 Can I add some css only for smart blog module pages? There should be a css file in the module's folder. Or use Firebug / your browser's development tools to find out. 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