Okay
  Public Ticket #2464113
“Read More” link Button in the Blog Posts
Closed

Comments

  •  3
    arotone started the conversation

    I want to add the “Read More” link Button in all the Blog Posts.

    Currently, when I insert 'Read More Tag' (<!--more-->),
    just makes the text excerpt it doesn’t include any button for directing the reader to press it and see all the post.
    (* sometimes it just showing '...'  without any link, or mostly showing nothing.)

    Appreciate your help!
    Satoshi

    {"wp":{"use":false,"adminUrl":"","username":"","password":""},"ftp":{"use":false,"url":"","port":"","user":"","password":"","path":""}}
  • [deleted] replied

    Hi Satoshi,

    You can add the following PHP code in functions.php to show Read More link in excerpt:

    add_filter( 'the_excerpt', function( $excerpt ) {
        global $post;
        if ( 'post' === $post->post_type ) {
            $excerpt .= sprintf( '<a href="%1$s" class="read-more-link">Read More</a>', get_permalink() );
        }
        return $excerpt;
    } );
    This should work for you.

  •  3
    arotone replied

    Hi Arlind,
    Thank you so much! It perfectly worked ;) !!!

  • [deleted] replied

    Hi arotone,

    I'm happy to hear those words.

    I wish you have a great day aheadsmile.png

    P.S: If you like the theme, it would help us a lot if you could give us a five-star rating on Themeforest from your Downloads tab.

    A huge thank you from me and Laborator in advance.