• Resolved keki3711

    (@keki3711)


    Hi!

    Please, how to add “read more” with a link on a blog post on excerpt?
    Currently, I put my blog post in full screen but if I excerpt them, the tag […] contains no link.
    Thank you for your help and sorry by my english!

    Cecilia
    https://www.ceciliagurpide.fr

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you try adding <!--readmore--> to the post? Let me know.

    Thread Starter keki3711

    (@keki3711)

    Hi,
    Yes, i did it, and that works but there are just a possibility to click into the title, no into the […], and there, haven’t write “read more”, just […] into the excerpt and no possibility to click in.

    At present, I put my post in full screen while waiting for a solution.

    Thanks you!

    Hi,

    You can add the following to your functions.php file of your child theme to fix it:

    function amadeus_custom_excerpt_more($more) {
       global $post;
       return '<a class="more-link" href="'. get_permalink($post->ID) . '">[...]</a>';
    }
    add_filter('excerpt_more', 'amadeus_custom_excerpt_more');

    Hope it works. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add "read more"’ is closed to new replies.