Putting a "Continue Reading" link on my main page in Prose

Community Forums Forums Design Tips and Tricks Putting a "Continue Reading" link on my main page in Prose

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  braddalton 1 year, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19614

    tylerholloway
    Participant
    Post count: 10

    I’ve tried doing this by using the code snippets on this site, but for some reason I haven’t been able to get it to work.  Very possible I didn’t put something in the right place.

    On my main page, after my summary the post just shows [...] and I’d like to change that to a Continue Reading link.  What do I need to do to set that up?

    Thanks in advance.

    Site: http://tylerholloway.net

    #19618

    braddalton
    Participant
    Post count: 10208

    Paste this code into the Genesis > Custom Code > Custom Functions box:

    [php]
    /** Customize the read more link */
    add_filter( ‘get_the_content_more_link’, ‘custom_read_more_link’ );
    function custom_read_more_link() {
    return ‘… <a class="more-link" href="’ . get_permalink() . ‘">Continue Reading</a>’;
    }
    [/php]


    #19622

    tylerholloway
    Participant
    Post count: 10

    Done, but its still showing the [...]. What am I missing?

    #19624

    braddalton
    Participant
    Post count: 10208

    I tested the code on my local test site and it shows the text but yours doesn’t.

    This is the reason:

    Go to Genesis > Theme Settings > Content Archives > Display Post Content > Limit content to

    And add a number for the content character limit


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.