Support » Fixing WordPress » WordPress is adding extra br tags after every HTML

  • Hi All ,
    wordpress is adding a br tag after every html tag . I don;t know what is the reason for this .

    I am using this code :-

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Please help!
    thanks
    Pranav

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Yes, if you put in a line break, WP puts in a <br />.

    If you don’t want that, don’t hit enter.

    Thread Starter pranav034

    (@pranav034)

    I am not using visual editor. I am using wordpress html editor .Anyways I found a solution myself . I was using wordpress getpagecontent fuction to show all the page content on homepage and there was a return n12br (— —) which was creating that problem.

    Thanks
    Pranav

    Thread Starter pranav034

    (@pranav034)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress is adding extra br tags after every HTML’ is closed to new replies.