Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1316429
    Christyleigh
    Participant

    Hi!

    I used the following code into functions.php on my child theme to display the “Read More” button on the index page under posts created using Cornerstone:

    function themprefix_excerpt_read_more_link($output) {
        global $post;
        return empty( $output ) ? $output : $output . ' <a href="' . get_permalink($post->ID) . '" class="more-link" title="Read More">Read More</a>';
    }
    add_filter( 'the_excerpt', 'themprefix_excerpt_read_more_link' );

    However, now I have two “Read More” buttons for all of the posts that were not created in Cornerstone. I have searched the forum but cannot find a definite solution for this issue.

    #1316969
    Paul R
    Moderator

    Hi,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

  • <script> jQuery(function($){ $("#no-reply-1316429 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>