How to Customize Genesis Post Excerpts

This tutorial is exclusively for Genesis Framework, the best WordPress theme you will ever need. Give it a try and stay ahead of the Crowd. Period.

Share This Article:

How to Customize Genesis Post Excerpts. Guide on how to modify excerpt length, display thumbnail, customize read more link in Genesis Theme with screenshots is available. Hope, you will read this article Completely without missing a word.

customize-genesis-post-excerpts

Recommended Read: Post Excerpts vs Full Size Posts

Modify Content Length in Genesis Post Excerpt

By default “Excerpts” display 50 words of content and if you need to modify the content length, below code will help you.

/** Change the length of post excerpts in Genesis */
function post_excerpt_length($length) {
return 40;
}
add_filter( 'excerpt_length', 'post_excerpt_length' );

This code returns first 40 words in the content by default. Based on the requirement, you can replace the highlighted number by any positive integer.

Check Out: Customize Genesis using Design Palette

Display Thumbnail in Genesis Post Excerpt

In Genesis, post excerpts can be customized to great extent and there is an inbuilt option to display “Thumbnail” inside post excerpt. Feature image will be displayed as thumbnail and image size can also be selected.

display-thumbnails-genesis-post-excerpts

PS: Thumbnails will be displayed only when “Display Post Excerpts” option is enabled. Go to Genesis Theme Settings page to activate post excerpts and select “Include Featured Image” option.

Also Read: Remove or Change Post Info in Genesis

Customize Read More link in Genesis Post Excerpt

Read More link is displayed in excerpts on home, archive and category pages. If you want to add “Read More…” link in excerpts of custom Genesis Child Theme, then use this code.

/** Custom Read More link for Genesis Post Excerpts */
function custom_read_more_link() {
return '<a href="' .get_permalink() .'" rel="nofollow">Read More...</a>';
}
add_filter( 'excerpt_more', 'custom_read_more_link' );
add_filter( 'get_the_content_more_link', 'custom_read_more_link' );
add_filter( 'the_content_more_link', 'custom_read_more_link' );

This code includes all filters related to “read more” link and hence link will be customized for <-more-> tag also.

Recommended: Display related posts in Genesis without Plugin

Change Read More link to “Continue Reading”

If you wish to change “Read More…” link to any other like “Continue Reading…”, just change the highlighted text in the above code to required one and add it to functions file by following the method below.

TIP: Its recommended to backup files before editing Genesis Theme.

How to add code to Genesis child Theme

Simple tutorial on how to add functionality to Genesis Child Theme.

  • Login to WordPress and go to “Appearance Menu“.
  • Edit functions.php file using “Editor“.
  • Copy & Paste the below code to functions.php and update it.
  • Voila, you have successfully customized Post Excerpts in Genesis.

If you need further help in “Customizing Genesis Post Excerpts” drop a comment and we are always glad to help you. Meanwhile, subscribe to our feeds to learn “Genesis Customization” for free.

This tutorial is exclusively for Genesis Framework, the best WordPress theme you will ever need. Give it a try and stay ahead of the Crowd. Period.

Genesis is the most flexible WordPress theme framework that comes with tons of options. We have been using Genesis on all of our blogs and recommending the same to you. Every bit of it is coded according to the standards. Give it a try!

Comments

  1. Amar says:

    Can i hide date and time in genesis news theme. i mean I don’t wanna show published dates and tine

    • WPSquare says:

      Yes you can. Soon, we will write an article on “How to hide date and time in Genesis”.

  2. Bhavesh Patel says:

    Great trick. I will surely use it in my blog.

    • WPSquare says:

      Glad you like it and thanks for dropping by!

  3. Les says:

    Nice tips, thanks! I was wondering if you might know how to help me with this one…
    I have archives.php and also a specific category-slug.php. In the category-slug.php, I would like to modify the loop to show the full post_content not just the excerpt. I would like the excerpt shown on all the other archives.php pages, which is accomplished easily in the Settings.
    I’ve tried a few things but am just learning my php! Thanks!

  4. Galen says:

    How do I make the featured image full-width and centered with a line break before the content begins? Thanks in advance!

    • WPSquare says:

      Just use margin: 0 auto; CSS property for the image class and it will be automatically centered. Now, add some margin to the bottom of the image and some space will be generated before the content.

  5. Mike Pesa says:

    Thanks Bharat. I would however like to replace the ‘read more text’ with an image, a button to be exact. How do I go about this?

    • WPSquare says:

      Hi Mike, you can that by adding some CSS to class of that read more link. If you need detailed info drop a mail by using the contact form.

  6. Kingsley says:

    Please how do i make the featured post have “Read More”? Mine is showing the full content

  7. Rich says:

    Hi, I go a syntax error when trying to add the ‘read more’ to excerpts instead of just [...]
    I used your “Customize Read More link in Genesis Post Excerpt” code. Is this the right code for this?
    The blog I’m working with is linked to my name on this comment. Thanks for your help!

  8. Kaila @healthyhelperblog! says:

    Is there a way to show FULL posts in pretty theme by genesis as opposed to just post excerpts?

  9. Nima says:

    How do you hide/disable featured image above blog post but still show thumbnail
    on post excerpts on home page? I am using streamline child theme.
    Searched for the solution but couldn’t find it.

  10. geo says:

    Hi there! This is an informative tutorial.Great work there! However, how do i remove the read more link in genesis theme in my frontpage?

Speak Your MindComments Policy →

*

Looking for More Awesomeness?

Read previous post:
post-excerpt-vs-full-post-wordpress
Post Excerpts vs Full Size Posts – WordPress Blog Homepage

Displaying Post Excerpts or Full Size Posts on your WordPress blog homepage. Its very difficult to decide between excerpts and...

Close