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 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. | |
| //* Customize the entry meta in the entry footer (requires HTML5 theme support) | |
| add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); | |
| function sp_post_meta_filter($post_meta) { | |
| $post_meta = '[post_categories] [post_tags]'; | |
| 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 entry meta in the entry header (requires HTML5 theme support) | |
| add_filter( 'genesis_post_info', 'sp_post_info_filter' ); | |
| function sp_post_info_filter($post_info) { | |
| $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. | |
| //* 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
| .theme-blue a, | |
| .theme-blue a:visited { | |
| color: #0d72c7; | |
| } |
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 new image sizes | |
| add_image_size('grid-thumbnail', 100, 100, 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 | |
| //* Do NOT include the opening php tag shown above. Copy the code shown below. | |
| //* Enqueue sticky menu script | |
| add_action( 'wp_enqueue_scripts', 'sp_enqueue_script' ); | |
| function sp_enqueue_script() { | |
| wp_enqueue_script( 'sample-sticky-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/sticky-menu.js', array( 'jquery' ), '1.0.0' ); | |
| } | |
| //* Reposition the secondary navigation menu |
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 after entry widget | |
| add_theme_support( 'genesis-after-entry-widget-area' ); |