• Resolved rox32

    (@rox32)


    Hi,

    Is there a way to display the Read More link (for manual excerpts) on a separate line using code? There is a difference between automatic and manual excerpts. Please check the screenshot to see the difference.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @rox32 , I’m not a developer for Hestia, but this article may possibly help you:

    https://docs.themeisle.com/article/1080-how-to-add-a-read-more-link-to-post-excerpt-in-hestia

    But instead of the PHP code listed there, try

    function new_excerpt_more($more) {
        return '';
    }
    add_filter('excerpt_more', 'new_excerpt_more', 21 );
    
    function the_excerpt_more_link( $excerpt ){
        $post = get_post();
        $excerpt .= '<br><a href="'. get_permalink($post->ID) . '">(more...)</a>';
        return $excerpt;
    }
    add_filter( 'get_the_excerpt', 'the_excerpt_more_link', 21 );
    

    Hopefully that helps. Did you want the automatic excerpts to be on a separate line or the manual excerpts?

    Thread Starter rox32

    (@rox32)

    Hi, @plantprogrammer
    Thanks a lot for answering. I would like to do the change for manual excerpts. I started using them recently.
    I will check the article too and see if I find the answer in there.

    Regards,
    Rox

    Thread Starter rox32

    (@rox32)

    I did the change! I thought about using <br> but I was afraid. I added it to the function and it’s working.
    Thanks, @plantprogrammer

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Move Read More link on a separate line’ is closed to new replies.