Link to home
Start Free TrialLog in
Avatar of Robert Granlund
Robert GranlundFlag for United States of America

asked on

Wordpress adding Closing Divs

I am using wordpress for a website.  I'm using builder.  I am using a php widget to help enclose other widgets into a spicific div.  However, Wordpress keeps adding Closing Divs or Closing p's where I do not want them.  Any ideas on how to stop the auto formatting?
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Try going to Settings | Writing and turn off "WordPress should correct invalidly nested XHTML automatically"
Avatar of Robert Granlund

ASKER

Jason, that box is not checked.
For example, I have four widgets in a row. the top widget contains <div id="container">
and the last widget contains </div>

Word press automatically closes the first div and I need that to stop.
Are these default Text widgets or something added via customization or plugin?
Every <div> needs it's own </div>.  Are they not nesting properly?
I am using the WP Text widget to enter the HTML.  The first twxt widget needs to hold an opening div.  and the last widget needs to have the closing div.
Is "Automatically Add Paragraphs" checked in the widget box?
@jason1178No that is not checked.
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial