Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1076253
    Clelia Mattana
    Participant

    Hi,

    I’ve been having this issue since a very long time but I didn’t have time to look into it.
    So if I go to my blog page here: http://www.keepcalmandtravel.com/blog/ I can see the following issues:

    1) some articles have the “read more” link in blue when others don’t
    2) The last blog post I published has the right excerpt (which is the first few sentences of the article), when most of the other posts have as excerpt the “related posts” which is at the end of the article (read more! and then the title of a few random posts)

    I didn’t touch anything so I don’t understand why sometimes I publish a blog post and it gives me the excerpt and some other times (most of the times) it doesnt.

    Thanks for your feedback!

    #1076405
    Christian
    Moderator

    Hey there,

    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 to your site
    – WordPress Admin username / password
    – FTP credentials

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

    Thanks.

    #1076444
    Clelia Mattana
    Participant
    This reply has been marked as private.
    #1077256
    Lely
    Moderator

    Hi There,

    Thank you for the credentials.

    1.) Please add the following code on your child theme’s functions.php file:

    if ( ! function_exists( 'x_excerpt_string' ) ) :
      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 ' ...';
        } else if ( $stack == 'icon' ) {
          return ' ...';
        } else if ( $stack == 'ethos' ) {
          return ' ...';
        }
    
      }
      add_filter( 'excerpt_more', 'x_excerpt_string' );
    endif;
    

    2.) That is because you’re using visual composer. Please note that by default, excerpt function of wordpress stripped out all HTML tag. Since Visual Composer and like any other frontend editor wrap the content inside a HTML tag, all content would be stripped giving you blank excerpt. You may want to add manual excerpt for this post. Manual excerpt doesn’t have readmore link. Above code will add the read more link.

    Hope this helps.

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