Skip to content

Instantly share code, notes, and snippets.

@rakeshtembhurne
Created March 3, 2012 10:59
Show Gist options
  • Save rakeshtembhurne/1965551 to your computer and use it in GitHub Desktop.
Save rakeshtembhurne/1965551 to your computer and use it in GitHub Desktop.
Code int the file adds a wide header with blog name and description for Child Theme of Roots theme for WordPress
<?
// hooks this function with parent theme' (Roots) action that can be used to display content below navbar
add_action('roots_content_before', 'roots_get_content_before');
/**
* Displays blog title and description
*
* @return void;
*/
function roots_get_content_before() {
echo '<div id="beforecontent" class="row">
<div class="'.FULLWIDTH_CLASSES.'">
<div class="hero-unit">
<h1><a class="" href="'.home_url().'">'.get_bloginfo('name').'</a></h1>
<p>'.get_bloginfo('description', 'display').'</p>
</div>
</div>
</div>';
}//end roots_get_content_before()
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment