Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to show excerpts of Posts on homepage in Focus Pro Theme
Tagged: continue reading, Focus Pro Theme, homepage, read more
- This topic has 7 replies, 3 voices, and was last updated 9 years, 8 months ago by Salman.
-
AuthorPosts
-
August 19, 2014 at 4:01 pm #119879SalmanMember
Hello Everyone,
I'm currently using Focus Pro Theme for my new blog http://www.salmaniac.com and everything's come out pretty well according to me. It's still under development and I haven't shared it with anyone else. Waiting to iron out a few kinks and add more content. I've written just two posts currently.
I'm not able to figure one thing out: the theme shows the entire post on the homepage. I don't want that. An excerpt of a few lines would do, with 'Read More' or 'Continue Reading' link that takes a user to the post's webpage.
Any idea how I can do that? I see that other themes in Genesis have that functionality. Beautiful Pro theme is one example of that.
http://www.salmaniac.comAugust 19, 2014 at 4:37 pm #119883jodzeeeMemberTry this tutorial from Brad Dalton:
http://wpsites.net/web-design/set-post-content-limits-for-home-blog-archive-pages/August 21, 2014 at 12:16 am #120128SalmanMemberCan't access the page. It says:
Sorry but this content is not available in your country at the moment.
Weird.
August 21, 2014 at 12:38 am #120129Genesis DeveloperMembergo to Genesis->Theme Option page and scroll down little bit. there have content archives section and choose the excerpt option from drop down. You'll get your desired result.
August 21, 2014 at 12:46 am #120130SalmanMemberThat works only for archive pages (categories and tags) and not the homepage. I want to modify the homepage.
August 21, 2014 at 12:57 am #120131SalmanMemberFrom what I understand through googling, I must make changes to the front_page.php of my child theme (i.e. Focus Pro).
Here's what the code on my fornt_page.php looks like:
<?php /** * This file adds the Home Page to the Focus Pro Theme. * * @author StudioPress * @package Focus Pro * @subpackage Customizations */ remove_action( 'genesis_loop', 'genesis_do_loop' ); add_action( 'genesis_loop', 'focus_grid_loop_helper' ); //* Add support for Genesis Grid Loop function focus_grid_loop_helper() { if ( function_exists( 'genesis_grid_loop' ) ) { remove_action( 'genesis_after_post_content', 'genesis_post_meta' ); genesis_grid_loop( array( 'features' => 2, 'feature_image_size' => 0, 'feature_content_limit' => 0, 'grid_image_size' => 'home-grid-thumbnail', 'grid_image_class' => 'alignnone', 'grid_content_limit' => 250, 'more' => __( '[Continue reading]', 'focus' ), ) ); } else { genesis_standard_loop(); } } genesis();
While I can make out what some of the code implies, I don't want to randomly play around with it. Can anyone please suggest what I should change in the code so that the homepage shows only a full width feature image and post excerpt, with Continue Reading link after it?
August 21, 2014 at 3:02 am #120155Genesis DeveloperMemberchange
`genesis_grid_loop( array(
'features' => 2,
'feature_image_size' => 0,
'feature_content_limit' => 0,
'grid_image_size' => 'home-grid-thumbnail',
'grid_image_class' => 'alignnone',
'grid_content_limit' => 250,
'more' => __( '[Continue reading]', 'focus' ),
) );`
by
`genesis_grid_loop( array(
'features' => 2,
'feature_image_size' => 'full',
'feature_content_limit' => 250,
'grid_image_size' => 'home-grid-thumbnail',
'grid_image_class' => 'alignnone',
'grid_content_limit' => 250,
'more' => __( '[Continue reading]', 'focus' ),
) );`
August 24, 2014 at 4:01 am #120743 -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.