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( 'template_include', 'ja_template_include' ); | |
| /** | |
| * Apply a template to all subcategories of a certain parent category. | |
| * | |
| * @author Rogier Borst | |
| * @author Gary Jones | |
| * @author Jared Atchison | |
| * | |
| * @link https://gist.github.com/gists/2787095 Current version |
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 new featured image sizes | |
| add_image_size( 'home-bottom', 150, 100, true ); | |
| add_image_size( 'home-top', 400, 200, true ); |
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 | |
| // Register widget area | |
| genesis_register_sidebar( array( | |
| 'id' => 'sample', | |
| 'name' => __( 'Sample', 'your-child-theme-text-domain' ), | |
| 'description' => __( 'This is the sample widget area description.', 'your-child-theme-text-domain' ), | |
| ) ); |
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 | |
| // Remove the author box on single posts | |
| remove_action( 'genesis_after_post', 'genesis_do_author_box_single' ); | |
| // Display author box on single posts | |
| add_filter( 'get_the_author_genesis_author_box_single', '__return_true' ); | |
| // Display author box on archive pages | |
| add_filter( 'get_the_author_genesis_author_box_archive', '__return_true' ); |
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 | |
| // Create color style options | |
| add_theme_support( 'genesis-style-selector', array( | |
| 'theme-blue' => __( 'Blue', 'your-child-theme-text-domain' ), | |
| 'theme-green' => __( 'Green', 'your-child-theme-text-domain' ), | |
| 'theme-orange' => __( 'Orange', 'your-child-theme-text-domain' ), | |
| 'theme-red' => __( 'Red', 'your-child-theme-text-domain' ), | |
| ) ); |
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_post_meta', 'post_meta_filter' ); | |
| // Customize the post meta function | |
| function post_meta_filter( $post_meta ) { | |
| return '[post_categories before="Filed Under: "] [post_tags before="Tagged: "]'; | |
| } | |
| // Remove the post meta function | |
| remove_action( 'genesis_after_post_content', 'genesis_post_meta' ); |
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_search_text', 'custom_search_input_text' ); | |
| /** | |
| * Customize the search form input button text. | |
| * | |
| * @param string $text Existing input text. | |
| * | |
| * @return string Amended input 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
| <?php | |
| // Replace your current wps_do_pitbull_image_three() with: | |
| function wps_do_pitbull_image_three() { | |
| wps_id_open( 'pitbull_image_three' ); | |
| global $post; | |
| wps_id_open( 'pitbull_image_three' ); | |
| echo '<p><img src="' .get_post_meta( $post->ID, '_d2c_pitbull_image_three', true ).'" /></p>'; | |
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_action( 'pre_get_posts', 'prefix_reverse_post_order' ); | |
| /** | |
| * Reverse Post Order for Post Archives on the Genesis Framework | |
| * | |
| * @author FAT Media | |
| * @link http://youneedfat.com/reverse-post-order-genesis-framework/ | |
| * @param object $query data | |
| * | |
| */ |
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 Organization schema to our logo | |
| add_filter( 'genesis_seo_title', 'rvam_header_title', 10, 3 ); | |
| function rvam_header_title( $title, $inside, $wrap ) { | |
| $inside = sprintf( '<div itemscope="itemscope" itemtype="http://schema.org/Organization"><a itemprop="url" href="%s" title="%s"><img class="logo" itemprop="logo" src="http://www.rvamedia.com/img/rva-media.png" alt="%s" /></a></div>', trailingslashit( home_url() ), esc_attr( get_bloginfo( 'name' ) ), get_bloginfo( 'name' ) ); | |
| return sprintf( '<%1$s id="title">%2$s</%1$s>', 'span', $inside ); | |
| } |