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 | |
| /* | |
| Template Name: Full Width Content with Blog Posts | |
| */ | |
| //* Add outreach-pro-home body class | |
| add_filter( 'body_class', 'custom_body_class' ); | |
| function custom_body_class( $classes ) { |
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 | |
| //* Do NOT include the opening php tag | |
| add_action( 'get_header', 'sk_posts_in_columns' ); | |
| function sk_posts_in_columns() { | |
| if ( is_home() || is_archive() ) { | |
| //* Display as columns | |
| add_filter( 'post_class', 'sk_display_in_columns' ); |
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 | |
| add_filter( 'genesis_markup_header-widget-area_output', 'prefix_opening_header_div', 10, 2 ); | |
| /** | |
| * Replace the opening header-right <aside> tag with a <div> tag to allow the | |
| * primary nav to be used in the header without being wrapped in an aside tag. | |
| * | |
| * @param $tag string The current tag for the .header-right widget area. | |
| * @param $args array The current args for genesis_attr() | |
| * @return $tag string The modified tag for the .header-right widget area. |
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 | |
| function ssfg_add_markup_class( $attr, $context ) { | |
| // default classes to add | |
| $classes_to_add = apply_filters ('ssfg-classes-to-add', | |
| // default foundation markup values | |
| array( | |
| 'site-header' => 'row', | |
| 'site-container' => 'inner-wrap', | |
| 'site-footer' => 'row', | |
| 'content-sidebar-wrap' => 'row', |
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 | |
| //Layout.php | |
| add_action( 'genesis_init', 'genesis_create_initial_layouts', 0 ); | |
| Feed.php | |
| add_filter( 'feed_link', 'genesis_feed_links_filter', 10, 2 ); | |
| add_action( 'template_redirect', 'genesis_feed_redirect' ); | |
| Options.php | |
| add_filter( 'get_term', 'genesis_get_term_filter', 10, 2 ); | |
| //SEO.php | |
| add_action( 'after_setup_theme', 'genesis_seo_compatibility_check', 5 ); |
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 | |
| //* Do NOT include the opening php tag | |
| /** Add Genesis Box on Single Posts support for HTML5 by Charlotte Anne**/ | |
| add_action('genesis_before_comments', 'child_genesis_box'); | |
| function child_genesis_box() { | |
| if ( is_single() ) | |
| require(CHILD_DIR.'/genesis-box.php'); | |
| } |
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
| /** | |
| * | |
| * Off-Canvas Navigation required Open & Close Wraps | |
| * | |
| **/ | |
| // OPEN Off Canvas Wraps | |
| add_action('genesis_before_header', 'custom_do_open_off_canvas_wraps', 9); | |
| function custom_do_open_off_canvas_wraps() { ?> |
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
| // A Fork of: http://garethcooper.com/2014/01/zurb-foundation-5-and-wordpress-menus/ | |
| /** | |
| * | |
| * Do Primary Top-Bar Navigation | |
| * | |
| **/ | |
| add_action('genesis_header', 'custom_do_top_bar_navigation', 11); | |
| function custom_do_top_bar_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
| <?php | |
| //* Do NOT include the opening php tag shown above. Copy the code shown below. | |
| //* Register Genesis box widget area | |
| genesis_register_sidebar( array( | |
| 'id' => 'after-post', | |
| 'name' => __( 'Genesis Box', 'themename' ), | |
| 'description' => __( 'This is a widget area that can be placed after the post', 'themename' ), | |
| ) ); |