• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

DigitizedPost

Guide to Successful Blogging Tips

  • Home
  • About
  • Get Started
  • Install WordPress
  • Contact

Display Excerpts and Enable Read More link in WordPress Genesis Theme

June 3, 2017 By Dinesh Leave a Comment

 

wordpress genesis sample child theme enable read more link

In Genesis Sample Child WordPress Theme, the excerpts wont be enabled by default. In homepage the full content of the post will be displayed. If you want to display only the post excerpts and not the whole content this post will guide you to show them in simple way.

wordpress add read more link to excerpt

Go to Worpress Theme Settings. In Display dropdown select Entry excerpts and save your changes.

genesis theme settings wordpress entry excerpts

Open your website and preview the homepage now. The excerpts will be added to the post and you will see the excerpts like […]. The entry excerpts doesn’t have a link to the post. If you want to navigate to the post, you have to click the post title or image thumbnail. To solve this issue you need to add a php code to your WordPress file.

Open functions.php and scroll down to the end of the functions.php file. In the end of the file add the below code,

//* Add support for Read More Button
add_filter('excerpt_more', 'dp_excerpt_more');
function dp_excerpt_more($more) {
global $post;
return ' <a class="button" href="'. get_permalink($post->ID) . '">' . 'Read More &raquo;' . '</a>';
}

Now save your changes and open your homepage and preview your changes. A Read More link will be added to your post excerpts.

You can replace the Read more link with your own text like Continue Reading, Read On etc.

Save

Save

Save

About Dinesh

Hi! I'm a Senior Developer and founder of DigitizedPost. In DigitizedPost, I will share the blogging tips and all technical aspects.

Related posts:

Remove Filed Under and Tagged With in Genesis Child Theme[Without Code]
How to Generate Sitemap for Blogger
Add Breaking News or Scrolling text using Marquee in Blogger

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

CommentLuv badgeShow more posts

Primary Sidebar

Categories

  • Blogging
  • Design
  • Domain & Web Hosting
  • Genesis
  • SEO
  • Social Media
  • WordPress

Recent Posts

  • Proper way to activate Google AdSense Auto Ads in Genesis theme
  • 25 Domain Name Generators To Get Suggested Domain Names
  • Add Navigation Menu in WordPress the Right way
  • How to permanently delete Facebook account
  • Enable Search description on Blogger to add keywords for each post

Copyright © 2019 — DigitizedPost • All rights reserved.

Privacy Policy Disclaimer