Change Text to "[Read more…]" Button

Home Forums Calendar Products Events Calendar PRO Change Text to "[Read more…]" Button

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #725047
    DDOT Webmaster
    Participant

    This is the address for the site I am developing:
    http://ddotsites.com/ddotuniversity/

    The Events Pages has been included to appear in the blog loop. Furthermore, the Content Archive is set to Display Post Content with a text limit of 500 characters. This limit generates a “[Read more…]” button. I want to change the text to “Read More” with no brackets and no ellipsis. How is that done.

    I have “Googled” the issue but I still can’t solve it.
    http://codex.wordpress.org/Customizing_the_Read_More
    http://codex.wordpress.org/Template_Tags/the_content
    http://www.elegantthemes.com/blog/tips-tricks/how-to-customize-the-wordpress-read-more-link-text

    Please help!

    See screenshot:
    http://ddotfiles.com/screenshots/button_read-more.jpg

    #725067
    DDOT Webmaster
    Participant

    I added this code to the child theme functions.php file, but nothing change. I don’t get it. Perplexed?

    add_filter( ‘the_content_more_link’, ‘modify_read_more_link’ );
    function modify_read_more_link() {
    return ‘Your Read More Link Text‘;
    }

    #725534
    Geoff
    Member

    Welcome back!

    You did exactly the same thing I would have done for changing the Read More text: start with the WordPress Codex.

    However, it looks like you’re using a Genesis theme (and child theme), and those typically come with their own sets of hooks and filters that override the default WordPress ones.

    I found this resource that looks pretty handy. Honestly, I haven’t played around with the Genesis framework enough to know if these work, but the second snippet sounds exactly like your situation: changing the Read More link using the Content Limit on the Content Archives section.

    Unfortunately, that’s about the extent of my knowledge when working with Genesis. Check back in and let me know if that works out for you.

    Cheers!
    Geoff

    #725777
    DDOT Webmaster
    Participant

    It worked!!! I put this code in the child theme functions.php file:
    //* Below is the code to modify the read more link when using the Content Limit on the Content Archives section on the Genesis Settings page:

    add_filter( ‘get_the_content_more_link’, ‘sp_read_more_link’ );
    function sp_read_more_link() {
    return ‘… Read More‘;
    }

    Thank you so much!

    #730636
    Geoff
    Member

    Awesome, I’m so glad that worked out! Thanks again for reaching out. I’m going to close this thread but feel free to open a new one if you run into any other issues.

    Geoff

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Change Text to "[Read more…]" Button’ is closed to new replies.