Created
March 3, 2012 10:59
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
// 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