• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Featured images and excerpt length

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Featured images and excerpt length

This topic is: not resolved

Tagged: excerpt length, featured image

  • This topic has 3 replies, 3 voices, and was last updated 9 years, 6 months ago by Elaine Griffin.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • August 13, 2013 at 6:22 am #56009
    Elaine Griffin
    Member

    Hello,
    I have a client who is wanting to have a lot of control over her featured images and excerpt lengths. I have been around and around with her about it what she wants and what is possible. I've tried using featured widget amplified, and she didn't like that. Here is her explanation of what she wants:

    In my perfect world, I'd have 5 posts on my home page. Each one would be truncated and show a teaser with a smaller featured image. Instead of it being just a quick teaser I'd actually like to show a chunk of the post itself, with all it's formatting and spacing, italics, paragraph breaks etc; The image would be at the top left and the text would wrap around it and extend down past the image for a couple of inches. I'd like the reader to be able to read a little bit of the post before deciding if they like it enough to click read more.

    In Genesis you have two choices. You can manually truncate or you can display excerpts.

    I used to manually truncate my posts. I would just pick a spot and insert a read more button. This looked great. I could make my teaser longer. It showed all my fancy formatting. It showed the post exactly as I had written it up to the point that I had inserted a read more button. The problem was, that it also showed the images that were inside the post. I always put an image at the top of my post to set a tone. So you would see the smaller featured image and then the same image in a full size right next to it. Looks weird right?

    So option two is change the setting to show an "excerpt." This is what I'm doing right now. This setting strips any HTML formatting. So I have no paragraph breaks, no italics, no bolding and everything runs together. From what I have read it's to avoid having a hanging tag if the sentence get's cut off. If you look at http://joyinthemidstof.com/page/3/ Page three my post Shot at Dawn is a poem. It looks so weird because there is no formatting. When you read the teaser you lose all meaning in how I formatted the words.

    Does that make sense? I want truncated posts, smaller featured images that display on one side, more control over how much text shows up, without having images show up twice.

    I have read that you can insert code to filter out images from showing on the home page and manually truncate. I have also read you can use plug-ins that stop the HTML formatting from being stripped out of the post excerpt. I wonder if there is a way to give the flexibility in post excepts. If not, then I might consider changing my home page layout a bit

    I'm not really sure how to give her what she wants. Any thoughts?
    Thanks!
    E

    http://www.joyinthemidstof.com
    August 13, 2013 at 7:04 am #56017
    Brad Dalton
    Participant

    You can add HTML tags back to excerpts and also increase the word limit in the excerpt using PHP code:

    And HTML formatting tags


    Get Help – Book Consultation.

    August 13, 2013 at 7:05 am #56020
    Anita
    Keymaster

    Well I just provided this link a few minutes ago to someone else. Brad Dalton of WPSites.net wrote a blog on adding HTML code back to excerpts - you can check that out here - http://wpsites.net/wordpress-tips/add-back-html-tags-stripped-from-content-limit-excerpts-in-wordpress/.

    He also wrote code that might work for the featured image. How it works... when you select the Featured Image, it will automatically show that image at the top of the post - which means she wouldn't have to manually add it there - http://wpsites.net/wordpress-tips/auto-set-featured-image/. The good thing about this is that - in Excerpts, that first image will not show up because it's technically not inserted into the body/content area.


    Love coffee, chocolate and my Bella!

    August 14, 2013 at 2:53 am #56247
    Elaine Griffin
    Member

    Thank you both! I'm running all of this by her and hopefully we can come to agreement. I will post if I have any more questions.
    Thanks again!

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble