Adding page title to continue reading (2 posts)

  1. dallasm
    Posted 5 years ago #

    The <more> tag produces "Continue Reading" in my theme (Weaver 2.0)
    I'm using evermore to automatically insert this after a few paragraphs on the main page.
    For SEO this sucks, it should be a relevant text based link.
    I'd like it to say instead something like
    "Continue Reading Post Title" with the link on the Post Title rather than on continue reading.
    or even better (I/m using multisite)
    "Continue Reading Post Title at Site name" withe the link on (Post Title at Site name)rather than on continue reading.

    I'm using Yoast SEO to automatically add the site name to my page titles so that might be one way to incorporate the site name.

    This seems pretty simple to me but I've tried modifying evermore
    (eg I tried putting replacing Evermore's autoinsert of "<!--more--!>" with <!--more-- continue reading <?php the title?;> !> and also "<!--more--!><?php the title?;>" and the loop templates but they don't seem to like php where I'm putting it (either and also putting <?php the title?;>
    (sorry if I have typed this wrong, cut and pasted the right one to use inside the loop from the codex when I was editing my templates)

  2. Bennett McElwee
    Posted 5 years ago #

    You can do this by changing your theme. For example, find a bit that looks like this:

    the_content('Continue Reading');

    and change it to

    the_content('Continue Reading ' . get_the_title('', '', false));

    For more details see the Codex:

Topic Closed

This topic has been closed to new replies.

About this Topic