WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Unwanted tags (empty) (5 posts)

  1. Willem-Siebe
    Member
    Posted 1 year ago #

    Hi, when adding a tiled gallery into my posts, no mather if I do it from the WYSIWYG editor or from the HTML editor, after publishing it and looking into the sourcecode of the page, you can see empty paragraphs.

    When the gallery follows after some text, only <p></p> is added below the gallery. On a page without any text, it is added above and below the gallery.

    This messes up my layout. How can I prevent WordPress from doing this?

    Kind regards,

    Willem

  2. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    How can I prevent WordPress from doing this?

    WordPress does not do that. Maybe a plugin or your theme? Have you tried deactivating all plugins and switching to the default theme to find out what adds those empty paragraphs/ unwanted tags?

  3. Media X
    Member
    Posted 1 year ago #

    As Krishna says, it's not a normal WP behaviour.
    However,after following the steps Krishna provided,if nothing changes, try using Remove P plugin.

  4. Willem-Siebe
    Member
    Posted 1 year ago #

    Okey, thanks you all, I will try and let you know.

  5. Willem-Siebe
    Member
    Posted 11 months ago #

    @Media X, @Krishna,

    You both are right. It's not normal when I test it on a clean install.
    Thanks for your help.

    Kind regards,

    Willem

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.