WordPress.org

Ready to get started?Download WordPress

Forums

Shortcodes add br tags (9 posts)

  1. Luis122
    Member
    Posted 3 years ago #

    Hey everybody,

    I dont know why, but I built some shortcodes and they add br tags after they finish, do you have an idea why?

    Thank you.

  2. WP Hosting Australia
    Member
    Posted 3 years ago #

    Are you using HTML mode in your text editor when you add the shortcodes?

  3. Luis122
    Member
    Posted 3 years ago #

    No.
    By the way.. I programmed those shortcodes.

  4. WP Hosting Australia
    Member
    Posted 3 years ago #

    Ok, so you either need to switch to HTML mode and enter them or check your shortcodes :)

  5. Luis122
    Member
    Posted 3 years ago #

    When I switch to HTML code I dont see them, there is a problem with the php file I think.

  6. thrive25
    Member
    Posted 3 years ago #

    I have the same exact problem

    I have been using the HTML editor and am getting those
    also. What is frustrating is that i don't see them in my functions.php or in the HTML editor.

    Need help fast... Anyone

  7. thrive25
    Member
    Posted 3 years ago #

    WOW! I found the answer on WordPress Forums [here]. The post was complaining about the same thing but it was happening in a plugin someone created.

    See this link

    The Fix: Add a space above and below your shortcode tag in the HTML Editor.

    e.g.

    [shortcode]
    
    your content
    
    [/shortcode]
  8. flick
    Member
    Posted 2 years ago #

    Thanks for this, thrive25 :)

  9. dColumbus
    Member
    Posted 2 years ago #

    I can't believe how finicky that is...

    Oh well, it certainly works! Thanks a lot, Thrive!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.