Home › Forums › Calendar Products › Events Calendar PRO › Change Text to "[Read more…]" Button
- This topic has 4 replies, 2 voices, and was last updated 11 years, 8 months ago by
Geoff.
-
AuthorPosts
-
September 5, 2014 at 11:25 am #725047
DDOT Webmaster
ParticipantThis 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-textPlease help!
See screenshot:
http://ddotfiles.com/screenshots/button_read-more.jpgSeptember 5, 2014 at 11:35 am #725067DDOT Webmaster
ParticipantI 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‘;
}September 5, 2014 at 4:12 pm #725534Geoff
MemberWelcome 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!
GeoffSeptember 5, 2014 at 6:14 pm #725777DDOT Webmaster
ParticipantIt 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!
September 8, 2014 at 7:30 am #730636Geoff
MemberAwesome, 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
-
AuthorPosts
- The topic ‘Change Text to "[Read more…]" Button’ is closed to new replies.
