Featured Posts widget: remove space before ellipsis (…)?

Community Forums Forums Design Tips and Tricks Featured Posts widget: remove space before ellipsis (…)?

This topic is: not resolved

This topic contains 1 reply, has 1 voice, and was last updated by  exelexys 4 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #94318

    exelexys
    Member
    Post count: 39

    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

    #94339

    exelexys
    Member
    Post count: 39

    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.

    • This reply was modified 4 months, 2 weeks ago by  exelexys.
    • This reply was modified 4 months, 2 weeks ago by  exelexys.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.