Jump to content

Is it possible to have different backgrounds for each page?


Recommended Posts

I know that the answer to this question may have everything to do with what template you choose for your storefront, but I need to ask, as I have not seen a template yet that can do it:

 

Is it possible to have different backgrounds for each page? In other words, can I have one background I want to use for the site's home page, and let's say a different one for use with the products page?

 

I know that some templates give you that ability to change the overall background image which it then uses to change EVERY page's background on the site, but is it even possible within Prestashop to have custom ones like I described up above?

 

Any insight would be much appreciated, thanks.

Link to comment
Share on other sites

hello,

yes it is possible

you can achieve it with css styles

 

homepage: #index {background:red;}

categories: #category {background:white;}

product: #product {background:orange;}

cms: #cms {background:black;}

 

etc.

 

you need to use page ID, it's usually located in <body> tag as a id param:

EKuVFWp.png

 

each page in the store has got own "id" param in <body> tag

  • Like 2
Link to comment
Share on other sites

  • 2 months later...

Hi, I would like to achieve the same thing - could you please advise where one should place this? into the global.css file or into some other css file? I think this is related very closely to the above question - or should I rather open a new topic regarding my question?

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