Community Forums › Forums › Archived Forums › Design Tips and Tricks › No "Read More" links
Tagged: blog links, monochrome pro, more links
- This topic has 5 replies, 2 voices, and was last updated 5 years ago by spiezz.
-
AuthorPosts
-
March 26, 2019 at 11:50 pm #490304spiezzParticipant
I seem to have a consistent problem with Genesis themes not having "read more" links- just a pile of lifeless ellipses.
I'm now using Monochrome pro and have installed the php suggested by the fabulous Mr Victor Font (https://victorfont.com/how-to-change-the-wordpress-read-more-text/). It's working GREAT on the front page posts -gathered with Genesis widget. But the posts on the actual blog page have no 'read more' text or links.
I'm not well versed in php but I tried to add a parameter by picking something in genesis simple hooks like 'genesis_after_entry'. I don't remember what it was. I erased it because it removed the more links that ARE working.
Any idea on why one category of posts would be able to use this while every other category can't access??
Thanks SO much for any insight!
http://old-souffle.flywheelsites.com/category/all-posts/March 27, 2019 at 6:25 am #490306BazParticipantHave you tried adding this to functions.php?
//* Modify the Genesis content limit read more link add_filter( 'get_the_content_more_link', 'sp_read_more_link' ); function sp_read_more_link() { return '... <a class="more-link" href="' . get_permalink() . '">[Continue Reading]</a>'; }
March 27, 2019 at 8:18 am #490307spiezzParticipantBaz,
Doesn't seem to work- very similar to what I have installed from Victors' suggestion above-
//* Modify read more link add_filter( 'get_the_content_more_link','new_read_more_link' ); function new_read_more_link() { return '... <a class="more-link" href="' . get_permalink() . '">Read More »</a>'; }
So still at a loss why it's working for front-page posts but not 'all posts'.
??March 27, 2019 at 11:29 am #490314BazParticipantThe Monochrome Pro theme displays the 'Read more' button only if you set the content archives to 'Display Content' and 'Limit Content to' xxx characters.
If you set it to display 'Entry excerpts' it will not show the button.
You can use the code above to change the button text (but remove the extra ... in the return '... " from the above code.
If you want a read more button for excerpts, it's a little more work adding a modified code to functions.php, and extra CSS to position the button.
March 27, 2019 at 11:37 am #490315BazParticipantTry this if your using the Display excerpts in Monochrome Pro:
Add this code to functions.php
// Read More Excerpt add_filter( 'excerpt_more', 'genesis_read_more_link' ); function genesis_read_more_link() { return '...<a class="more-link" href="' . get_permalink() . '">Continue Reading</a>'; }
And this to style.css (adjust as needed)
.more-link { display: block; margin-top: 40px; color: #fff; width: 160px; }
That should work 🙂
March 28, 2019 at 8:53 pm #490341spiezzParticipantBEAUTIFUL!
Thank you sooo much!
K -
AuthorPosts
- The topic ‘No "Read More" links’ is closed to new replies.