WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Theme: Suffusion] Extra white space in pages (7 posts)

  1. Dong Suzuki
    Member
    Posted 1 year ago #

    Can anyone help me with this? There is this white space between the nevigation and the page content. See it here:http://www.sudongyue.com/writing/about/

    This problem only occurs in pages. Category pages and post pages are fine. I used fire-bug but still cannot locate the problem.

    Dong

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    An empty paragraph is causing this space.

    <p class="first-para"></p>

    Make sure your pages' content (in the Dashboard) do not contain any additional space.

  3. Dong Suzuki
    Member
    Posted 1 year ago #

    Thanks for pointing that out. Andrew. I think I have just got rid of that paragraph, and I also change .non-wp-entry {padding:15px 0 5px}to .non-wp-entry {padding:0px 0 5px}The space shrinks but still there is quite a margin.

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    If you have no use for the paragraph classed, "first-para" you can hide it with CSS, as this is still causing the margin.

    E.g

    p.first-para {
     display: none;
    }
  5. Dong Suzuki
    Member
    Posted 1 year ago #

    That is helpful but I lose all my first paragraphs of my post entries. Is there a code to hide the first paragraph just for this page only?

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    Yes, you can identify only that page by using the <body> class which depicts the page id number.
    E.g

    .page-id-221 p.first-para
  7. Dong Suzuki
    Member
    Posted 1 year ago #

    That is great. Now it is looking much better. Thank you so much!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags