• Resolved Anonymous User 14254218

    (@anonymized-14254218)


    Hi everyone, not really sure whether this belongs into this support forum but guidance to the right spot will also be appreciated if this is the case.

    So setting up all post archives and the “latest post block” to show excerpts behaves a little bit weird imo.

    The “read more” link is only shown if the excerpt does not exceed the specified word count (latest post block).

    Users without the right amount of affinity to understand that all links on page X are e.g. underscored and red are most likely going to be left stranded since it is hard to understand for them, that they will have to click on the title to read the content instead of just the excerpt.

    Is it possible to somehow add the read more link if an excerpt is shown but content != empty?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    I use the following snippet in excerpts, see if it works for you. Add it to the child theme’s functions.php:

    add_filter('excerpt_more', 'wpsites_excerpt_read_more_link');
    function wpsites_excerpt_read_more_link($more) {
    return '... <a class="read-more" href="'. get_permalink() . '">Read More &raquo;</a>';
    }
    Thread Starter Anonymous User 14254218

    (@anonymized-14254218)

    @t-p this code only changes the “read more” link text, doesn’t it?

    Thread Starter Anonymous User 14254218

    (@anonymized-14254218)

    “Fixing” this relates to another topic I created:
    https://www.ads-software.com/support/topic/continue-reading-not-showing-in-latest-post-block/#post-12725675

    The solution will have to include a read more link no matter the content of the items and will most likely have to be implemented by registering a custom block. Solution will be posted in the other thread, therefore resolving this for now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘excerpts missing “read more” link’ is closed to new replies.