Need a WordPress website this weekend? Start here...

When Things Go Really Wrong: Fixing layouts trashed with improper div tags

(Reading time: 1 – 2 minutes)

You’re cruising along, just bashing out articles and posts and pages, maybe writing in WordPress directly, maybe copying in material from elsewhere.

And your entire blog layout crashes.

Maybe the sidebar is at the bottom of the page. Rules and borders are going wacky. Instant despair.

One way this can happen is when you copy html pages from other sources… and these pages have bad markup. Improperly closed div tags are especially troublesome.

 

The Upshot…

Fix layout issues fast
WordPress layouts depend on correctly closing block elements such as <div> and <p>. These elements often cause trouble when content is imported into WordPress from other sources. Splitting <div> tags with the “<!--more-->” directive will definitely cause layout issues.
WordPress layout issues can often be fixed very quickly by deleting div tags.

 

Here’s how to find and fix layout issues resulting from improperly closed <div> tags…

[Read more...]