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
/* | |
HTML | |
---------------------------------------------------------------------------------------------------- */ | |
<div class="desktop"><a href="#"></a></div> | |
/* | |
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 | |
/** | |
* Genesis Front Page Manager | |
* | |
* @package Genesis_Front_Page_Manager | |
* @author Brad Potter | |
* @license GPL-2.0+ | |
* @link http://www.bradpotter.com/plugins/genesis-front-page-manager | |
* @copyright Copyright (c) 2014, Brad Potter | |
*/ |
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
Javascript | |
- - - - - - - - - - - - - - - - - - | |
$( '.nav-header' ).before( '<button class="menu-toggle header-toggle" role="button" aria-pressed="false"></button>' ); // Add toggle to header menu | |
$( '.nav-primary' ).before( '<button class="menu-toggle primary-toggle" role="button" aria-pressed="false"></button>' ); // Add toggle to primary menu | |
$( '.nav-secondary' ).before( '<button class="menu-toggle secondary-toggle" role="button" aria-pressed="false"></button>' ); // Add toggle to secondary menu | |
$( 'nav .sub-menu' ).before( '<button class="sub-menu-toggle" role="button" aria-pressed="false"></button>' ); // Add toggles to sub menus | |
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
//* Enqueue styles | |
add_action( 'wp_enqueue_scripts', 'themeprefix_enqueue_styles' ); | |
function themeprefix_enqueue_styles() { | |
wp_enqueue_style( 'dashicons' ); | |
} |
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
/* Site Header Navigation | |
--------------------------------------------- */ | |
.site-header .genesis-nav-menu a { | |
line-height: 1; | |
padding: 40px 22px 10px; | |
} | |
.site-header .sub-menu a { | |
padding: 16px 20px; |
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 display Tertiary Navigation Menu | |
add_action('genesis_before_header', 'genesis_sample_header_menu'); | |
function genesis_sample_header_menu() { | |
register_nav_menu( 'tertiary', 'Tertiary Navigation Menu' ); | |
genesis_nav_menu( array( | |
'theme_location' => 'tertiary', | |
'menu_class' => 'menu genesis-nav-menu menu-tertiary', | |
) ); |
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
function my_customizer_css() { | |
?> | |
<style type="text/css"> | |
<?php $color = get_theme_mod( 'header_background_color' ); if ( $color ) { printf( '.site-header { background-color: %s; }', $color ); } ?> | |
</style> | |
<?php | |
} | |
add_action( 'wp_head', 'my_customizer_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
//* Customize the entry meta in the entry header | |
add_filter( 'genesis_post_info', 'themecore_post_info_filter' ); | |
function themecore_post_info_filter($post_info) { | |
$post_info = '[post_date] [post_author_posts_link] [post_comments] [post_edit]'; | |
return $post_info; | |
} |
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 | |
/** | |
* | |
*/ | |
class My_Genesis_Customizer extends Genesis_Customizer_Base { | |
/** | |
* Settings field. | |
*/ | |
public $settings_field = 'genesis-settings'; |
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
if ( get_theme_mod( 'primary_menu_location' ) == 'before-header' ) { | |
remove_action( 'genesis_after_header', 'genesis_do_nav' ); | |
add_action( 'genesis_before_header', 'genesis_do_nav', 10 ); | |
} |
OlderNewer