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 | |
| //* Modify the size of the Gravatar in the author box | |
| add_filter( 'genesis_author_box_gravatar_size', 'custom_author_box_gravatar' ); | |
| function custom_author_box_gravatar( $size ) { | |
| return 96; | |
| } | |
| //* Modify the size of the Gravatar in the entry comments |
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 | |
| //* don't copy php tag above | |
| //* add following code to functions.php: | |
| //* Load backstretch js | |
| /** Add metabox for backstretch default/fallback background image */ | |
| add_action( 'genesis_theme_settings_metaboxes', 'themename_theme_settings_metaboxes', 10, 1 ); | |
| function themename_theme_settings_metaboxes( $pagehook ) { |
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
| function mp_remove_body_classes($classes, $class){ | |
| foreach($classes as &$str){ | |
| if(strpos($str, "YOUR_CLASS_HERE") > -1){ | |
| $str = ""; | |
| } | |
| } | |
| return $classes; | |
| } | |
| add_filter("body_class", "mp_remove_body_classes", 10, 2); |
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 | |
| //* don't copy php tag above | |
| //* add following code to functions.php: | |
| //* Load backstretch js | |
| /** Add metabox for backstretch default/fallback background image */ | |
| add_action( 'genesis_theme_settings_metaboxes', 'themename_theme_settings_metaboxes', 10, 1 ); | |
| function themename_theme_settings_metaboxes( $pagehook ) { |
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('genesis_after_header','portfolio_title'); | |
| function portfolio_title() { ?> | |
| <div class="portfolio-title"> | |
| <div class="wrap"> | |
| <h1 class="entry-title" itemprop="headline"> | |
| <span class="portfolio-headline">Portfolio » </span> | |
| <?php the_title(); ?> | |
| </h1> |
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: Portfolio */ | |
| /** | |
| * Portfolio Listing | |
| * | |
| */ | |
| function be_portfolio_listing() { | |
| $args = array( | |
| 'post_type' => 'portfolio', |
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 entry meta in the entry header | |
| remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
| remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); | |
| remove_action ('genesis_loop', 'genesis_do_loop'); // Remove the standard loop | |
| add_action( 'genesis_loop', 'custom_do_loop' ); // Add custom loop | |
| function custom_do_loop() { |
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_action( 'pre_get_posts', 'sk_show_titles_only_category_pages' ); | |
| /** | |
| * Show Linked Titles Only for Posts in Category Pages | |
| * | |
| * @author Sridhar Katakam | |
| * @author Bill Erickson | |
| * @link http://www.billerickson.net/customize-the-wordpress-query/ | |
| * @param object $query data | |
| * | |
| */ |