Forum Support

 
Advanced Search


New Posts
FAQs for Wordpress
If you have a question about Wordpress products please read through a list of our most commonly asked questions here.
[1]

Offline twarme
Free Member
Posts: 46

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
Logged

Offline Tristan Rineer
Free Member
Posts: 3858

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):

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

Change it to:

Code:
<?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!
Logged

Offline twarme
Free Member
Posts: 46

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
« Last Edit: March 13, 2016, 12:18:34 PM by twarme »
Logged

Offline Tristan Rineer
Free Member
Posts: 3858

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.
Logged

Offline twarme
Free Member
Posts: 46

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
Logged
[1]

Jump to:  


Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Page created in 0.022 seconds with 22 queries.
Need some help getting your site up and running? Be sure to check out our tutorials area, post on the forum or hire us
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.