Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1287360
    Sarah P
    Participant

    Hi X-Team,

    thank you for your wonderful theme. I like it very much.

    For a website I use grid builder.

    If there is too less text, I use “excerpt” field.

    But the problem is that the “Read-more” Button disappear…

    Can you please see on the website what I can do for this?

    Thanks!

    #1287361
    Sarah P
    Participant
    This reply has been marked as private.
    #1287791
    Rad
    Moderator

    Hi there,

    Thanks for writing in.

    Manually added excerpt don’t have “read more” by default. But we can add it by simply adding this code to your child theme’s functions.php

    add_filter('the_excerpt', 'x_read_more_custom', 9999);
    
    function x_read_more_custom ( $excerpt ) {
    
    global $post;
    
    return empty( $post->post_excerpt ) ? $excerpt : $excerpt.'<a href="'.get_permalink( $post->ID ).'">read more</a>';
    
    }

    Hope this helps.

    #1289205
    Sarah P
    Participant

    WOW! Thank you!!!

    #1289217
    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again.

    Thanks.

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