WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Extra space inserted before first word in Excerpt (5 posts)

  1. larrychartier
    Member
    Posted 1 year ago #

    Hi All,

    I have a weird issue where an extra space appears before the auto-generated excerpt on my posts page. This only happens if I let WordPress create the excerpt for me. If I manually input the excerpt it does not appear.

    This is happening on all my posts, regardless of the content.

    Any help would be much appreciated!

  2. alchymyth
    Forum Moderator
    Posted 1 year ago #

    please post a link to your site, where the problem can be seen.

  3. larrychartier
    Member
    Posted 1 year ago #

  4. alchymyth
    Forum Moderator
    Posted 1 year ago #

    seems to be coming from this output by some 'social ring button' (?) plugin:

    <div style="clear:both;">&nbsp;</div>

    which ends up in the excerpts as a single 'non-breaking-space' character &nbsp;

    as a first step try to temporarily disable the plugin;
    if this helps, try digging into the plugin code to replace &nbsp; with an ordinary space character.

  5. larrychartier
    Member
    Posted 1 year ago #

    That was it! Thanks so much for helping me with this :)

Topic Closed

This topic has been closed to new replies.

About this Topic