Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] CSS Selector toChange Body Background Image on all Single Posts in a certain


 
Prev Previous Post   Next Post Next
  #1  
Old Apr 25, 2014, 07:12 PM
New WordPress Fan
 
141 posts · Jul 2010
[SOLVED] CSS Selector toChange Body Background Image on all Single Posts in a certain

What CSS selector will work to change the body background image for all single posts in a certain category, using Wordpress 3.9 and Atahualpa 3.7.15?

The CSS solution provided in this thread: http://forum.bytesforall.com/showthread.php?t=20610

worked fine with Wordpress 3.5.2 and Atahualpa 3.7.12. Where the category name was "instructional videos," the following CSS code worked perfectly in those older versions of Wordpress & Atahualpa:

Code:
body.single.instructional-videos {
background-image: url("http://xxxx.jpg");
}
However, this does not work now with the newer versions of WP and Atahualpa referenced above.

After viewing the page source, I also tried:

Code:
body.single.category-instructional-videos {
background-image: url("http://xxxx.jpg");
}
But this also does not work.

"div.category-instructional videos" does work as a selector to change the background image of the post itself, but not the full body background.

Can't seem to find the correct CSS selector now to do what body.single.[category-name] did perfectly in the older versions of WP and Atahualpa referenced above.

Any help will be greatly appreciated!

Last edited by New WordPress Fan; Apr 25, 2014 at 07:16 PM.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] What CSS Selector to Style width of one single Post New WordPress Fan Forum How-To 2 Jul 10, 2013 09:52 PM
What CSS Selector for Category Name Added At Top of Each Category Page? New WordPress Fan Forum How-To 6 Dec 9, 2011 06:15 PM
sidebars in single posts one parent category only. ortixia Sidebars & Widgets 1 Mar 7, 2010 05:10 AM
[SOLVED] Different template for single posts by category or other means greggman Center area post/pages 4 Feb 24, 2010 10:34 PM


All times are GMT -6. The time now is 01:30 PM.


Powered by vBulletin® Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.