Permalink
Browse files

'custom-background' <body> class.

git-svn-id: http://svn.locallylost.com/themes/hybrid-core/trunk@945 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information...
greenshady
greenshady committed Dec 9, 2011
1 parent 77235ea commit ac408db6dc4b9c8b4514c1116a3443349a262677
Showing with 4 additions and 0 deletions.
  1. +4 −0 functions/context.php
View
@@ -298,6 +298,10 @@ function hybrid_body_class( $class = '' ) {
if ( is_admin_bar_showing() )
$classes[] = 'admin-bar';
+ /* Use the '.custom-background' class to integrate with the WP background feature. */
+ if ( get_background_image() || get_background_color() )
+ $classes[] = 'custom-background';
+
/* Merge base contextual classes with $classes. */
$classes = array_merge( $classes, hybrid_get_context() );

0 comments on commit ac408db

Please sign in to comment.