Skip to content

Instantly share code, notes, and snippets.

@WPRanger
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WPRanger/88e0eabb3ff3d3881378 to your computer and use it in GitHub Desktop.
Save WPRanger/88e0eabb3ff3d3881378 to your computer and use it in GitHub Desktop.
Church Theme Function
remove_action('omega_header', 'omega_branding');
add_action('omega_header', 'its_branding');
// Add the below lines after these two above ^^^^^
function its_branding() {
echo '<div class="' . omega_apply_atomic( 'title_area_class', 'title-area') .'">';
/* Get the site title. If it's not empty, wrap it with the appropriate HTML. */
if ( $title = get_bloginfo( 'name' ) ) {
if ( $logo = get_theme_mod( 'custom_logo' ) )
$title = sprintf( '<h1 class="site-title"><a href="%1$s" title="%2$s" rel="home" )><span><img src="%3$s" alt="%4$s"/></span></a></h1>', home_url(), esc_attr( $title ), $logo, get_bloginfo( 'description' ) );
else
$title = sprintf( '<h1 class="site-title"><a href="%1$s" title="%2$s" rel="home" ><span>%3$s</span></a></h1>', home_url(), esc_attr( $title ), $title );
}
/* Display the site title and apply filters for developers to overwrite. */
echo omega_apply_atomic( 'site_title', $title );
/* Get the site description. If it's not empty, wrap it with the appropriate HTML. */
if ( $desc = get_bloginfo( 'description' ) )
$desc = sprintf( '<h2 class="site-description"><span>%1$s</span></h2>', $desc );
/* Display the site description and apply filters for developers to overwrite. */
echo omega_apply_atomic( 'site_description', $desc );
echo '</div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment