This file contains hidden or 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
//* Wrap .nav-primary in a custom div | |
add_filter( 'genesis_do_nav', 'genesis_child_nav', 10, 3 ); | |
function genesis_child_nav($nav_output, $nav, $args) { | |
return '<div class="nav-primary-wrapper">' . $nav_output . '</div>'; | |
} | |
//* Wrap .nav-secondary in a custom div | |
add_filter( 'genesis_do_subnav', 'genesis_child_subnav', 10, 3 ); |
This file contains hidden or 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
genesis_register_sidebar( array( | |
'id' => 'featured', | |
'name' => __( 'Featured', 'eleven40' ), | |
'description' => __( 'This is the featured section.', 'eleven40' ), | |
) ); | |
/** Add the home featured section */ | |
add_action( 'genesis_after_header', 'eleven40_featured' ); | |
function eleven40_featured() { |
This file contains hidden or 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
wp_enqueue_script( 'minimum-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0' ); | |
wp_enqueue_script( 'minimum-backstretch-set', get_bloginfo('stylesheet_directory').'/js/backstretch-set.js' , array( 'jquery', 'minimum-backstretch' ), '1.0.0' ); | |
wp_localize_script( 'minimum-backstretch-set', 'BackStretchImg', array( 'src' => get_background_image() ) ); |
This file contains hidden or 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
//* Remove the default header | |
remove_action( 'genesis_header', 'genesis_do_header' ); | |
//* Add Primary Nav in custom header | |
add_action( 'genesis_header', 'genesis_do_nav' ); | |
//* Add Site Title in custom header | |
add_action( 'genesis_header', 'sk_do_header' ); | |
function sk_do_header() { |
This file contains hidden or 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
//* Position post info above post title | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12); | |
add_action( 'genesis_entry_header', 'genesis_post_info', 9 ); |
This file contains hidden or 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
//* Make Font Awesome available | |
add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' ); | |
function enqueue_font_awesome() { | |
wp_enqueue_style( 'font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css' ); | |
} | |
//* Customize search form input box text | |
add_filter( 'genesis_search_text', 'sp_search_text' ); |
This file contains hidden or 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
//* Add support for custom header | |
add_theme_support( 'custom-header', array( | |
'default-text-color' => '000000', | |
'header-selector' => '.site-title a', | |
'header-text' => false, | |
'height' => 90, | |
'width' => 380, | |
) ); |
This file contains hidden or 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 | |
/** | |
* This file adds the custom portfolio post type archive template. | |
* | |
*/ | |
//* Force full width content layout | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
//* Remove the breadcrumb navigation |
This file contains hidden or 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
genesis_register_sidebar( array( | |
'id' => 'home-sidebar', | |
'name' => __( 'Home Sidebar', 'your-theme-slug' ), | |
'description' => __( 'This is the home sidebar section.', 'your-theme-slug' ), | |
) ); | |
add_action( 'genesis_after_header', 'sk_custom_sidebar_homepage' ); | |
function sk_custom_sidebar_homepage() { |