While using a Genesis child theme for a blog, I noticed that upon choosing excerpt from the Content Archives Display settings, a […] is placed at the end of the excerpt instead of a read me link. The […] is not linked to the full post either. This article will discuss how to add a read more link to Genesis child theme to replace the […] at the end of the excerpt. The child theme I am using is News Pro.
After performing some searches on Google, the simplest way to add the read more link was by adding a snippet of code to the functions.php file. I personally don’t like to modifying the functions.php file directly, so I use a plugin called My Custom Functions to add extra codes without editing functions.php. So, the first step you want to follow is install the My Custom Functions plugin. If you are comfortable editing the functions.php file which can be found by going to Appearance > Editor, you don’t have to install additional plugins.
Here are the steps to follow to add read more link to Genesis child theme:
The code to add to your functions.php file or inside My Custom Functions setting is:
// Add Read More Link to Excerpts
add_filter('excerpt_more', 'get_read_more_link');
add_filter( 'the_content_more_link', 'get_read_more_link' );
function get_read_more_link() {
return '... [Read More]';
}
Thanks to WPATCH.com for the above code.
If you are experiencing issues with your Windows system due to the Crowdstrike update, here's…
Koodo customers in Canada can now get Amazon Prime, Netflix Standard with ads and Disney+…
If you received an email with a single use code to login to your Microsoft…
If you are trying to login to your Microsoft account and getting the following error…
Most system admins set Microsoft Teams status to show Away when you are inactive for…
If you are using a Windows computer and your keyboard doesn't have a backslash "\"…
View Comments
Hi David, thanks for sharing what you tried. I tested your method (because I also don’t want to enter my code files), but I failed, even with the plugin and the code you provided. Perhaps it is because I am using the genesis sample theme (for a while) and not one of the child themes.
I also tried the code snippet on the studiopress site, but that also didn’t work. After many attempts I discovered that there are also ‘read more’ button plugins or read more excerpt link plugins. I installed one of those and it finally worked! I know plugins are never a good solution, but temperary they can be. Maybe it’s worth to add the possibility of the read more plugin to the article as a last resort for some of us? :))) It would have saved even more time if this was also included in your article. 🙂 Anyway, your article helped me. Thanks a lot and good luck with your blog! Klara
Thanks so much for sharing your fix :). I will definitely look into updating the article with the plugin option.