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. | |
| //* Customize search form input box text | |
| add_filter( 'genesis_search_text', 'sp_search_text' ); | |
| function sp_search_text( $text ) { | |
| return esc_attr( 'Search my blog...' ); | |
| } |
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. | |
| //* Disable the superfish script | |
| add_action( 'wp_enqueue_scripts', 'sp_disable_superfish' ); | |
| function sp_disable_superfish() { | |
| wp_deregister_script( 'superfish' ); | |
| wp_deregister_script( 'superfish-args' ); | |
| } |
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. | |
| //* Customize the next page link | |
| add_filter ( 'genesis_next_link_text' , 'sp_next_page_link' ); | |
| function sp_next_page_link ( $text ) { | |
| return 'Custom Next Page Link »'; | |
| } |
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. | |
| //* Customize the post meta function | |
| add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); | |
| function sp_post_meta_filter($post_meta) { | |
| if ( !is_page() ) { | |
| $post_meta = '[post_categories before="Filed Under: "] [post_tags before="Tagged: "]'; | |
| return $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 | |
| //* Do NOT include the opening php tag shown above. Copy the code shown below. | |
| //* Customize the post info function | |
| add_filter( 'genesis_post_info', 'sp_post_info_filter' ); | |
| function sp_post_info_filter($post_info) { | |
| if ( !is_page() ) { | |
| $post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]'; | |
| return $post_info; | |
| }} |
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. | |
| //* Add support for post format images | |
| add_theme_support( 'genesis-post-format-images' ); |
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. | |
| //* Modify the Genesis content limit read more link | |
| add_filter( 'get_the_content_more_link', 'sp_read_more_link' ); | |
| function sp_read_more_link() { | |
| return '... <a class="more-link" href="' . get_permalink() . '">[Continue Reading]</a>'; | |
| } |
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. | |
| //* Reposition the primary navigation menu | |
| remove_action( 'genesis_after_header', 'genesis_do_nav' ); | |
| add_action( 'genesis_before_header', 'genesis_do_nav' ); |
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. | |
| //* Add custom body class to the head | |
| add_filter( 'body_class', 'sp_body_class' ); | |
| function sp_body_class( $classes ) { | |
| if ( is_category( '1' ) ) | |
| $classes[] = 'custom-class'; | |
| return $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 shown above. Copy the code shown below. | |
| //* Display a custom favicon | |
| add_filter( 'genesis_pre_load_favicon', 'sp_favicon_filter' ); | |
| function sp_favicon_filter( $favicon_url ) { | |
| return 'http://www.mydomain.com/wp-content/themes/genesis/images/favicon.ico'; | |
| } |