Single page Background

Posted in: Newsmag
Post count: 52

How can i change a single page background. I add this code .page-id-9151 {
background: url(http://www.guineehitmusique.com/wp-content/uploads/2014/08/BACKGROUND-.jpeg) no repeat !important;
} to stylesheet css. but nothing show up.

Post count: 6535

Hi

The background image it’s controlled by td_background_render.php file. If you want to change the background image for a specific page add this code in indicated file like here: http://screencast.com/t/UStsASqeyp

if (is_page('9151')){
            $this->background_parameters['theme_bg_image'] = 'http://www.guineehitmusique.com/wp-content/uploads/2014/08/BACKGROUND-.jpeg';
        }

This code will load a specific background image for the page with id 9515. Note that in order to work you need to have set a background image in theme panel: http://screencast.com/t/MZsoqAlnaN

Let me know how it goes.
Thanks!

  • This reply was modified 10 years by Andrei L..
Post count: 52

Thank you it work great.
so how about changing the content background. I want to have black or image background for the content of the page id 9515. https://www.dropbox.com/s/7aupsajo9ctctq8/Screen%20Shot%202016-03-07%20at%2010.49.54%20PM.png?dl=0

Post count: 6535

Hi

Try this css in theme panel > custom code > custom css:

.page-id-9515 .td-container{
background-color: red;
}

Thanks!

Post count: 52

i try this code but it doesn’t respond

Post count: 6535

Hi

Please provide yo site url so I can inspect this closer.
Thanks!

Post count: 52
Post count: 6535

Hi

Use the css like this, now it should work fine:

.td-container{
background-color: red;
}

Thanks!

Post count: 52

i did but this code is for all content post is posible to do for single page

Post count: 6535

Hi

To achieve that add the unique class for each post in your css. The class will look like this: .page-id-123 for pages and .postid-123 for posts. Just replace the 123 number with the post/page numeric id. To get the id follow this link: http://screencast.com/t/WFRpjR0LS
Your css should look like this:

.page-id-123 .td-container{
background-color: red;
}

Thanks!

  • This reply was modified 10 years by Andrei L..
Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newsmag’ is closed to new topics and replies.