Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1033285
    cpyder
    Participant

    Hi there,

    The title is self-explanatory I suppose.

    I have purchased your awesome theme and have been using it on my local development server. I noticed the some posts do not show the ‘Read More..’ tag.

    A little more digging showed up that it is missing for posts that have Manual Excerpts. To prove my point, I put a manual excerpt ‘Hand Crafted’ and sure enough the read more tag was gone.

    Any fixes??

    Thanks for your time.

    #1033434
    Rupok
    Member

    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.

    #1034353
    cpyder
    Participant

    Hi Rupok,

    As I said, it is still on my ‘local’ development server. Its on localhost/ so giving the credentials is a no go as of now.

    But as I said that it is happening with posts with manual excerpts, may be you could re-produce the issue on your end.??

    #1034854
    Rue Nel
    Moderator

    Hello There,

    I am another staff checking on this thread! The read more link in the excerpts will only display if the excerpt is being summarize and have exceeded the default excerpt length. When you have a manual excerpt, you will notice that it will all display no matter how many lines you’ve got. An auto-generated excerpt will also have all shortcodes and tags removed. It is trimmed down to a word-boundary and the default length is 55 words. For languages in which words are (or can be) described with single characters (ie. East-Asian languages) the word-boundary is actually the character. Excerpts are optional hand-crafted summaries of your content that can be used in your theme. Learn more about manual excerpts.

    Hope this helps.

    #1035514
    cpyder
    Participant

    Hi Rue,

    So I am sure, this part is a bug in the theme. Because I have carefully crafted excerpts for all posts. And now as X works, it does not produce any link in search results. I hope you dont expect me to go and remove manual excerpts from all the content. I am not going to do that as the manually crafted Excerpts are an important aspect of SEO as well.

    I guess this needs to be fixed

    Thanks for your time

    Cheers

    #1035666
    Lely
    Moderator

    Hi There,

    Can you try adding the following code on your child theme’s functions.php file:

    function custom_excerpt($text) {  // custom 'read more' link
       if (strpos($text, '[...]')) {
          $excerpt = strip_tags(str_replace('[...]', '... <a href="'.get_permalink().'">Read More...</a>', $text), "<a>");
       } else {
          $excerpt = '<p>' . strip_tags($text) . '<a class="read-more" href="'.get_permalink().'">Read More...</a></p>';
       }
       return $excerpt;
    }
    add_filter('the_excerpt', 'custom_excerpt');

    Hope this helps.

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