Archived

This topic is now archived and is closed to further replies.

  • 0

How To Remove Empty Div Tags *only* In 'page' Content Area?


Question

Posted · Report post

Greetings,

I have made my original post at http://wordpress.sta...ge-content-area, but am inquiring here for assistance in case anyone here is familiar with the issue. In addition, I have also submitted a support request via http://www.pagelines.com/contact/. A commenter at my StackExchange post suggests I should possibly seek assistance from here and PageLines Premium Support (as I did purchase the Premium framework).

The problem:

Wordpress(?) is inserting empty DIV tags throughout the page, and this is cosmetically affecting my form big-time by resulting in a very vertically-dragged out form with huge spacing in between rows. It looks ugly and awful. I have spent hours last month Googling for solutions and tried many that did nothing. There was one that worked, but unfortunately it broke the image slider I have at http://www.tiptopcare.net/ so I couldn't use that solution.

As per suggestions from my StackExchange post, I have also enabled debug mode with logging and more detail enabled. Unfortunately, the only things showing up are two minor and irrelevant errors about WP Super Cache (irrelevant because during development I had the WP Super Cache plugin entirely disabled, and still had the empty DIV tag problem), and one error being printed on my wp-admin dashboard "Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/username/public_html/wp-includes/functions.php on line 2722".

These are the plugins I presently have enabled:

Contact Form 7

TinyMCE Advanced

WP-DBManager

WP Super Cache

Any assistance and support is much appreciated!

post-43780-0-13085000-1353782833_thumb.p

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

Deactivate the plugins, one at a time and clear the cache before visiting the site to see if these mystery divs vanish. If they do, then the plugin last deactivated was the culprit and should be replaced.

I've deactivated *all* my plugins (except for the very plugin that does the contact form) and I still have this problem. I have Googled and researched, and it isn't the form plugin that is doing this -- it isn't supposed to.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi there, it looks like Pagelines is adding an extra margin to the P tag, try the css below to remove it. Paste into Pagelines>Site Options>Custom Code

 

.wpcf7 form.wpcf7-form p {

    margin: 0 0;
    orphans: 4;
}


Share this post


Link to post
Share on other sites

Posted · Report post

Deactivate the plugins, one at a time and clear the cache before visiting the site to see if these mystery divs vanish. If they do, then the plugin last deactivated was the culprit and should be replaced.

Share this post


Link to post
Share on other sites