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 | |
| /** | |
| * WordPress Theme: OceanWP | |
| * | |
| * Add this code snipit to functions.php to place the Yoast breadcrumbs above the post title on | |
| * single posts. | |
| * | |
| */ | |
| function yoast_breadcrumb_above_title() { |
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 | |
| /** | |
| * The template part for displaying single posts | |
| * | |
| * @package WordPress | |
| * @subpackage Twenty_Sixteen | |
| * @since Twenty Sixteen 1.0 | |
| */ | |
| ?> | |
| <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
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 | |
| /** | |
| * The template for displaying all single posts and attachments | |
| * | |
| * @package WordPress | |
| * @subpackage Twenty_Sixteen | |
| * @since Twenty Sixteen 1.0 | |
| */ | |
| get_header(); ?> |
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. | |
| //Change search form text | |
| function themeprefix_search_button_text($text) | |
| { | |
| return ('Search Bent Corner...'); | |
| } | |
| add_filter('genesis_search_text', 'themeprefix_search_button_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 | |
| //* Do NOT include the opening php tag shown above. Copy the code shown below. | |
| // Change the read more link to " > Continute Reading ". | |
| add_filter('get_the_content_more_link', 'custom_read_more_link'); | |
| add_filter('the_content_more_link', 'custom_read_more_link'); | |
| function custom_read_more_link() | |
| { | |
| return '... <span class="read-more"><a class="read-more" href="' . get_permalink() . '" rel="nofollow">> Continue Reading</a></span>'; | |
| } |
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. | |
| // Automatically adds the featured image to the top of every post entry, below the title and the post meta data. | |
| add_action('genesis_entry_header', 'single_post_featured_image', 15); | |
| function single_post_featured_image() | |
| { | |
| if (!is_singular('post')) | |
| return; |
NewerOlder