Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » Forum Usage » Forum How-To »

[SOLVED] Unwanted blank paragraphs inserted <p> </p>


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Dec 19, 2010, 10:52 PM
jbharding
 
5 posts · Feb 2010
When I save my post, unwanted blank paragraphs are being inserted, especially where I have a left justified image at the first text line of the post - i.e. <p> </p> is being inserted creating large gaps in my post.

Sometimes this does not happen if I save from the HTML view, but it does happen there, as well.

Here is an example.

I am using WordPress 3.0.1 and Atahualpa 3.4.4.

It's a great theme, just the same...
  #2  
Old Dec 20, 2010, 12:51 PM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
WordPress puts that in. To see, activate the twenty-ten theme and add a post. You will still see that <p> </p> combo. If you go search wordpress.org you will find many complaints about it and some other html they add in at certain points
  #3  
Old Dec 20, 2010, 05:09 PM
STB
 
762 posts · Apr 2010
What JD said, this is not related to the Atahualpa theme, it is default WordPress behaviour.

Two plugins you might like to disable this auto-formatting:

http://wordpress.org/extend/plugins/disable-wpautop/
http://wordpress.org/extend/plugins/...to-formatting/

If you dont want a plugin, just add this to your theme's function.php
PHP Code:
//disable wpautop filter
remove_filter ('the_content',  'wpautop'); 
But I beleive you will manually have to add <p> and <br /> tags when you disable the auto-formatting.
Not 100% sure. Just check.

Last edited by STB; Dec 20, 2010 at 05:11 PM.
  #4  
Old Dec 28, 2010, 11:27 PM
jbharding
 
5 posts · Feb 2010
JuggleDad:
Great advice and using the second of the two plugins recommended by STB, it works - go rid of all that crazy whitespace caused by the <p> </p> insertions by Wordpress.

Thanks a million for helping me with the best theme going.
John

Last edited by juggledad; Dec 29, 2010 at 02:46 AM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
No Spaces in Paragraphs. writeleft Atahualpa 3 Wordpress theme 4 May 18, 2010 09:38 PM
Impossible to left align text after inserted image on page tootsweet Center area post/pages 4 May 18, 2010 06:53 AM
Controlling inserted table on pages sparksmex Page & Category Menu Bars 2 Sep 30, 2009 06:07 PM
Different formatting of caption text depdening on how image inserted Pommie Atahualpa 3 Wordpress theme 4 Jun 14, 2009 03:22 PM
Bug: Escape Characters Inserted TarheelRambler Post-Kicker, -Byline & -Footer 11 Dec 14, 2008 08:22 AM


All times are GMT -6. The time now is 07:31 AM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.