• 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

Keep text formatting in Archive post content excerpt

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 › Keep text formatting in Archive post content excerpt

This topic is: resolved

Tagged: formatting excerpt

  • This topic has 4 replies, 1 voice, and was last updated 6 years, 5 months ago by patgilmour.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 8, 2020 at 4:18 pm #496569
    patgilmour
    Member

    Hi,

    In my posts, I'm using italics to indicate book titles. However, on my Blog (Home) page, the Entry content is removing the formatting.

    Here are two images to show what I'm talking about:

    Post Editor:
    https://www.dropbox.com/s/yg4p071980xovnv/admin-edit-post.png?dl=0

    Homepage:
    https://www.dropbox.com/s/kztknhvn4p13fmg/archive-page.png?dl=0

    How do I keep the italic formatting (I'd like to use bold too) in the post excerpt listings on the Blog/Home page?

    I'm using a modified version of the 411 theme (no listed any more but here's Brian Gardner's post about it: 411 Theme ).

    Thanks for any help,

    Patrick

    https://patrickgilmour.com
    February 8, 2020 at 4:38 pm #496570
    patgilmour
    Member

    I thought this was a Genesis/theme question, but it appears to be a general WordPress question instead.

    I tried to resolve the issue with this plugin: https://wordpress.org/plugins/advanced-excerpt/

    But it doesn't work with Genesis it seems.

    Any other ideas?

    February 8, 2020 at 5:00 pm #496571
    patgilmour
    Member

    Looks like my question could be rephrased:

    - How can I preserve text formatting for content in genesis_entry_content on the archive page?

    February 10, 2020 at 9:06 pm #496629
    patgilmour
    Member

    Anyone?

    February 11, 2020 at 2:42 pm #496657
    patgilmour
    Member

    Here's the solution:

    add_filter('get_the_content_limit_allowedtags', 'childtheme_custom_allowedtags');
    function childtheme_custom_allowedtags() {
    	return '<em>'; // add whatever tags you want to this string, <b>, <strong>, etc.
    }

    I found the solution here: https://pixert.com/blog/enable-formatting-tags-for-content-limit-in-genesis-featured-posts-widget/

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Keep text formatting in Archive post content excerpt’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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