Apply background to

Posted in: Newspaper
Post count: 22

I can add a custom background for my pages using this css code:
body {
background-image: url(‘http://mysite.com/press/wp-content/uploads/2014/10/blackpaper.png’);
background-color: #121212;
background-size: cover;
background-attachment: fixed;
}

Sample: http://screencast.com/t/j9aStWxzDq

But I can’t seem to do the same for my posts or my “post page” using the same coding.

I have background images off.
And I have used this code to create a custom homepage background than what I want to use for my other pages.
Right now, I am using the above code for my legal pages, and would like to apply the same background to my posts and “post page”.

Thanks for the help!

Post count: 22

Would still love to hear how tagdiv would solve the problem…

In the meantime, after finding a couple of duds, I picked up a plugin that I find myself liking quite a bit called “Custom Backgrounds for WordPress”:

http://codecanyon.net/item/custom-backgrounds-for-wordpress/

Post count: 6600

hi,

I have tested your css and as you can see in the screenshot it apply’s on post pages as well: http://screencast.com/t/sSYwYx7G0sW
I’m not usre why this does not apply in your case, please send your site’s URL and also add this code into the custom css filed so I can inspect it. Also try to add !important to your css code like this: http://screencast.com/t/2ZXuqKTjPxq

Thanks

Post count: 22

Thanks, Lucian!

I did find another very flexible solution with a wp plugin called “Custom Backgrounds for WordPress” here:
http://codecanyon.net/item/custom-backgrounds-for-wordpress/121983

Lot of additional features/options to it, and gave me exactly what I was looking for… the ability to apply a single background to all posts.

Of particular interest, though not sure if I will use it for this feature or not, it also has the ability on each page to select a custom background for that specific page.

Post count: 6600

Hi,

Glad to know you have managed to get this done as you wanted.
Thanks for letting me know.

Have a nice day!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.