• 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

Workaround for 'Content Character Limit' removing style?

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 › Workaround for 'Content Character Limit' removing style?

This topic is: resolved
  • This topic has 4 replies, 3 voices, and was last updated 2 years, 6 months ago by Anita.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 22, 2020 at 4:51 pm #496116
    keithpurtell
    Participant

    I've Googled without finding a way to preserve style in 'Genesis -Featured Page' when 'Content Character Limit' is selected.

    I'm going to hard code an HTML solution, unless there is an obscure tip (even PHP) that someone wants to tell me about?

    January 23, 2020 at 7:09 am #496131
    Victor Font
    Moderator

    This is the way WordPress works when displaying an excerpt. The default is to strip HTML coding from the excerpt and just display text.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    January 23, 2020 at 3:50 pm #496146
    Anita
    Keymaster

    If you are using "Content Character Limit" you should get the Read More link. If you are using "Excerpt" you will not get the Read More link.

    Excerpt

    Excerpt:Only a portion of the content of the post will be displayed. The excerpt is a teaser that shows the first 55 words of the post's content. All HTML tags and graphics are stripped from the excerpt’s content.

    Content Limit

    Content Limit:Only a portion of the content of the post will be displayed. This setting is similar to showing an excerpt, but you can define the exact number of characters displayed.

    You can modify the Excerpt character limit by adding this to your functions file or custom function plugin.

    //* Modify the length of post excerpts
    add_filter( 'excerpt_length', 'sp_excerpt_length' );
    function sp_excerpt_length( $length ) {
    	return 50; // pull first 50 words
    }

    Love coffee, chocolate and my Bella!

    January 23, 2020 at 4:27 pm #496148
    keithpurtell
    Participant

    This is very helpful.
    In the case of the page that prompted the question, the client today shortened their text. But I'm keeping your responses for future use.

    January 23, 2020 at 4:59 pm #496150
    Anita
    Keymaster

    Instead of shortening the length, then all that needed to be done was to use the "More" tag. In Classic Editor there is the "More" button on the Kitchen Sink. If using the Block Editor, they could have split out their content into to Paragraph blocks and then inserted the "More" block in between them.


    Love coffee, chocolate and my Bella!

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Workaround for 'Content Character Limit' removing style?’ 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

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