Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1300705
    Sublimesw
    Participant

    Hello,

    I need to change the “read more” link that is on the blog page.
    Appreciate if you guys can help with this matter.

    Best Regards,

    Flávio Rebelo

    #1300774
    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 ' ...';
        }
    
      }
      add_filter( 'excerpt_more', 'x_excerpt_string' );

    You can replace the Read More text with your text.

    Hope it helps 😉

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