Jump to content
Sign in to follow this  
asgsport

Backgrounds Please help

Recommended Posts

asgsport

Hi Im trying to set, a a custom page background on different pages and its not working :( I need a main background for all pages and just need to overwrite some of the pages with another background. .page-id-84, .full_width #page, body.fixed_width {background-image: url("http://www.asgsport.co.za/back.jpg") !important} This top one works but it overwrites all the backgrounds? .page-id-101, {background-image: url("http://www.asgsport.co.za/back1.jpg") !important}

Share this post


Link to post
Share on other sites
Kate

This is for the main background, correct? On the body? If so, then you would use something like this:

.page-id-101{background: url("http://www.asgsport.co.za/back1.jpg") !important;}

Let us know how that goes...

Share this post


Link to post
Share on other sites
asgsport

Kate that is PERFECT!! Works great.. Just one more thing, how would i set the Canvas background image as well? My universal one looks like this: body #page{background:transparent url(http://www.asgsport.co.za/95.png)} But would also like to make it page specific. Thanks!

Share this post


Link to post
Share on other sites
catrina

To make your canvas background image page specific, you'll need to know the page ID, which is used in the CSS selector to specify where the background image can be used. Example:

body.page-id-70 #page-canvas {background:transparent url(http://www.asgsport.co.za/95.png)};

The page ID can be found by viewing the source and seeing the page ID for the body tag (should be at the top of the page).


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
asgsport

Hi Catrina, It works great, however it only customizes one page? body.page-id-84 #page-canvas {background:transparent url(http://www.asgsport.co.za/yellowbg.png'>http://www.asgsport.co.za/yellowbg.png)}; body.page-id-118 #page-canvas {background:transparent url(http://www.asgsport.co.za/yellowbg.png'>http://www.asgsport.co.za/yellowbg.png)}; page-id-118 wont load the same background as 84. am I missing something?

Share this post


Link to post
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

Sign in to follow this  

×