• 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

Genesis Featured Posts Plugin "More Text"

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 › Genesis Featured Posts Plugin "More Text"

This topic is: not resolved

Tagged: featured posts, more text, read more, widget

  • This topic has 1 reply, 2 voices, and was last updated 8 years ago by Victor Font.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • June 5, 2017 at 10:08 pm #207372
    [email protected]
    Member

    Using the Genesis Featured Posts Plugin I've set my "More text" to say something, but the widget ignores it and uses the default more text defined in my theme's functions file. How can I have the plugin display the more text I want for this widget?

    This is the code I have in my functions file, but I want this to be used on posts, not in this widget.

    //* Modify the Excerpt read more link
    add_filter('excerpt_more', 'new_excerpt_more_cat');
    function new_excerpt_more_cat($more) {
    
    	return '... <a class="more-link" href="' . get_permalink() . '">Keep Reading</a>';
    
    }
    June 6, 2017 at 5:30 am #207381
    Victor Font
    Moderator

    You would need to wrap the code in an appropriate WordPress conditional. https://codex.wordpress.org/Conditional_Tags

    For example, assuming your widget displays on the home page, you can adjust the code like this:

    //* Modify the Excerpt read more link
    add_filter('excerpt_more', 'new_excerpt_more_cat');
    function new_excerpt_more_cat($more) {
    	if ( ! ( is_front_page() || is_home() ) ) {
    		$more = '... <a class="more-link" href="' . get_permalink() . '">Keep Reading</a>';
    	}
    
    	return $more;
    }

    Regards,

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

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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

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