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
// Register and Hook Top Navigation Menu | |
add_action('genesis_before_header', 'sample_before_header_menu', 10); | |
function sample_before_header_menu() { | |
register_nav_menu( 'top', 'Top Navigation Menu' ); | |
genesis_nav_menu( array( | |
'theme_location' => 'top', | |
'menu_class' => 'menu genesis-nav-menu menu-top', | |
) ); |
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
//* Create Header Wrapper Open | |
add_action('genesis_after_header', 'entry_header_wrapper_open', 10 ); | |
function entry_header_wrapper_open() { | |
if ( ! is_home () ) { | |
echo '<div class="entry-header-wrapper"><div class="wrap">'; | |
} | |
} |
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
/** | |
* Use an img tag for the logo | |
* @param $title | |
* @param $inside | |
* @param $wrap | |
* | |
* @return string | |
*/ | |
function ssm_modify_site_title_html( $title, $inside, $wrap ) { |
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
<?php | |
// add css using the thesis_css filter | |
class your_skin_class extends thesis_skin { | |
function construct() { | |
add_filter('thesis_css', array($this, 'add_css')); | |
} | |
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
<?php | |
// Nav Menu Dropdown Class | |
include_once( CHILD_DIR . '/lib/classes/nav-menu-dropdown.php' ); | |
/** | |
* Mobile Menu | |
* | |
*/ | |
function be_mobile_menu() { |