Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit cab3b907662a397291bd9857572e0e584453d8a8 1 parent de1d620
@justintadlock authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 functions/context.php
View
4 functions/context.php
@@ -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() );
Please sign in to comment.
Something went wrong with that request. Please try again.