Shape 5

Wordpress Club Themes => Game World - Club => : twarme March 10, 2016, 08:24:37 PM



: How to limit the text in posts displayed on the home page on this theme?
: twarme March 10, 2016, 08:24:37 PM
Hello All,

I 'm trying to limit the text displayed in posts displayed on the homepage. More, excerpt, and none of the other methods I've attempted have worked yet. Any suggestions? Be the smart guy; tell this newbie how it's done. Thank you! - Trey


: Re: How to limit the text in posts displayed on the home page on this theme?
: Tristan Rineer March 11, 2016, 10:02:14 AM
I'm not sure why the More tag isn't working, but this should do what you want -

Edit the content.php file in the theme folder and look for the following line (near line 55):

:
		<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>

Change it to:

:
		<?php if ( is_archive() || is_search() || !is_singular() ) : // Display excerpts for archive, search, and any area that is not a single post or page. ?>

Hopefully that helps!


: Re: How to limit the text in posts displayed on the home page on this theme?
: twarme March 12, 2016, 09:24:20 PM
Thank you for your shared expertise Tristan! Huh, I changed the line of code to what you suggested, however the homepage still shows the entire text of posts. Scratching head... Any other ideas? Thank you! - Trey


: Re: How to limit the text in posts displayed on the home page on this theme?
: Tristan Rineer March 14, 2016, 06:42:09 AM
If you are referring to Masonry, the widget will use the pre-defined excerpt text if it exists.  You may have to enable the excerpt editor in the screen options dropdown located in the top right of the page/post editor.


: Re: How to limit the text in posts displayed on the home page on this theme?
: twarme March 15, 2016, 05:44:36 AM
If you are referring to Masonry, the widget will use the pre-defined excerpt text if it exists.  You may have to enable the excerpt editor in the screen options dropdown located in the top right of the page/post editor.

Thank you Tristan! I got it! Yes, I am referring to the Masonry widget. More worked on a couple of posts, but not others, and only presented the image for one post on the home page. I enabled excerpt and now see the excerpt text box at the bottom of the edit post screen. At first, I was bummed excerpt didn't present the image. Then I just added the html for the desired image to the excerpt. Success! Thank you for your help! - Trey