Skip to content

Commit

Permalink
Add the 'custom-header' body class when a custom header is in use.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Tadlock committed Jun 14, 2012
1 parent de1d620 commit cab3b90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions functions/context.php
Expand Up @@ -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() );

Expand Down

0 comments on commit cab3b90

Please sign in to comment.