Permalink
Browse files

Add the 'custom-header' body class when a custom header is in use.

  • Loading branch information...
1 parent de1d620 commit cab3b907662a397291bd9857572e0e584453d8a8 @justintadlock committed Jun 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 functions/context.php
View
@@ -311,6 +311,10 @@ function hybrid_body_class( $class = '' ) {
if ( get_background_image() || get_background_color() )
$classes[] = 'custom-background';
+ /* Add the '.custom-header' class if the user is using a custom header. */
+ if ( get_header_image() )
+ $classes[] = 'custom-header';
+
/* Merge base contextual classes with $classes. */
$classes = array_merge( $classes, hybrid_get_context() );

0 comments on commit cab3b90

Please sign in to comment.