Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1189144
    addwebtoday
    Participant

    Hello everyone, I have this little problem on my blog posts. I want on the blog index page, DO NOT show the entire blog entry, instead show an excerpt followed by “Read More” Button to the original blog post. I already search for any threads but it’s not working for me. Can you please help? Thanks

    #1189147
    addwebtoday
    Participant

    I’ll send my login details below.

    #1189148
    addwebtoday
    Participant
    This reply has been marked as private.
    #1189181
    Thai
    Moderator

    Hi There,

    Please add the following code under functions.php file locates in your child theme:

    function x_excerpt_string( $more ) { 
        $stack = x_get_stack();
    
        if ( $stack == 'integrity' ) {
          return ' ... <div><a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a></div>';
        } else if ( $stack == 'renew' ) {
          return ' ... <a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a>';
        } else if ( $stack == 'icon' ) {
          return ' ...';
        } else if ( $stack == 'ethos' ) {
          return ' ... <a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a>';
        }
    }
    add_filter( 'excerpt_more', 'x_excerpt_string' );

    Hope it helps 🙂

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