Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1130676
    rasada
    Participant

    Hi I have looked at lots of forum posts
    The last 1 I tried was this https://community.theme.co/forums/topic/change-text-of-read-more-tag/
    Where I am using Icon and want the read more to appear on the page listing all blogs
    So i added this and nothing happens
    Please let me know what i could have missing
    Thanks

    // Adding “Read More” link to the Excerpts
    // =============================================================================

    function excerpt_read_more_link($output) {
    global $post;
    return $output . ‘ID) . ‘”> Read More‘;
    }

    add_filter(‘the_excerpt’, ‘excerpt_read_more_link’);

    #1130702
    Thai
    Moderator

    Hi There,

    Please try with this code instead:

    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 ' ... <a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a>';
      } else if ( $stack == 'ethos' ) {
        return ' ...';
      }
    
    }
    add_filter( 'excerpt_more', 'x_excerpt_string' );

    Hope it helps πŸ™‚

    #1130834
    rasada
    Participant
    This reply has been marked as private.
    #1130842
    Thai
    Moderator

    Hi There,

    In this case, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link login to your site
    – WordPress Admin username / Password
    – FTP Account

    Don’t forget to select Set as a private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1131575
    rasada
    Participant
    This reply has been marked as private.
    #1131603
    Christopher
    Moderator

    Hi there,

    Please activate child theme to see the result.

    Thanks.

    #1131619
    rasada
    Participant

    Thank you so much – sorted

    #1131636
    Christopher
    Moderator

    Glad we could help you with this.

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