• 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 Posts widget: remove space before ellipsis (…)?

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 › Design Tips and Tricks › Featured Posts widget: remove space before ellipsis (…)?

This topic is: not resolved

Tagged: ellipsis, Excerpt, featured posts

  • This topic has 1 reply, 1 voice, and was last updated 11 years, 2 months ago by exelexys.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 11, 2014 at 5:24 pm #94318
    exelexys
    Member

    Need help trying to remove the space at the end of a Featured Post widget excerpt just before the three trailing dots (or ellipsis). As shown in this image, a new line is created with just the ellipsis:

    Have tried adding code in functions.php, but this widget is unaffected.

    Having trouble tracking this down. Does anyone know where it can be found and how to remove it?

    Thanks in advance

    March 11, 2014 at 6:59 pm #94339
    exelexys
    Member

    Seems the ellipsis in the Featured Posts widget starts on a new line because it's actually an HTML entity (

    …

    ), not three periods as originally thought. Apparently, the spacing between the dots in the entity is much smaller than the standard spacing between three periods, hence the need for an HTML entity.

    This HTML character entity can be replaced with three periods using the following filter pulled from the StudioPress
    Post Excerpts snippet.

    //* Modify the Genesis content limit read more link
    add_filter( 'get_the_content_more_link', 'sp_read_more_link' );
    function sp_read_more_link() {
    	return '... <a class="more-link" href="' . get_permalink() . '">[Continue Reading]</a>';
    }

    This doesn't eliminate the space between the end of the excerpt and the new faux ellipsis, but at least now there are no orphaned ellipses on new lines.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ 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