Thank you very much, Juggledad. I will send you a PM with the URL and ref to a post.
Meanwhile, your last post here made me realize that I was using "category-xxx" to designate the category id ("category-6"), rather than the category name. When I changed it to the category name ("category-news"), now your code works to change the background of all posts themselves within the news category!
i.e.: The following does change the background of (that is, the background within) all individual posts in the news category to the designated image:
div.post.category-news {
background-image: url("http://...");
}
This is very helpful to know! This CSS selector then allows one to style all individual posts in one category alone. Very useful!
Now, what I want to do is not to change the post backgrounds within the posts, but to change the body background (full screen) to a designated image for all individual posts in one particular category.
Based on your first reply in this thread, would this require me to add a category class to single posts in the Atahualpa Functions php?
In Wordpress Codex (
http://codex.wordpress.org/Function_...nce/post_class) I found the following:
"To add a category class to single post pageviews and template files in the post content area for the post class and the entire page in the body HTML class, add the following to the functions.php.
Code:
// add category nicenames in body and post class
function category_id_class($classes) {
global $post;
foreach((get_the_category($post->ID)) as $category)
$classes[] = $category->category_nicename;
return $classes;
}
add_filter('post_class', 'category_id_class');
add_filter('body_class', 'category_id_class');
Would adding the above code to the Atahualpa Functions php file allow me to style the body background for all individual posts in a particular category - separately by category?
If so,
1. Specifically where in the Atahualpa Functions php file (or do they mean the Wordpress functions.php?) should I put the above code? and
2. What CSS Selector would I then use to change the body background for all individual posts in a particular category?
Would you then use the following?
Code:
body.post.category-news {
background-image: url("http://...");
}
Many thanks!