• Resolved mriffey

    (@mriffey)


    http://hateyourway.org/?theme=Inferno&passkey=10371464284e7ea6660f656

    Please let me know if you can’t view it; but the space between the header and content shouldn’t be there. I’ve tried multiple things in CSS but have not managed to get rid of the space. Please help! I’ve tried searching for answers, but none of the CSS provided in those answers has worked yet! I was using bare template files that provided the basics.

    it seems WordPress adds a paragraph break between my <div class="head">TITLE</div> and the start of the content tag. Anyway to remove the first paragraph break but keep the rest?

    The <?php remove_filter ('the_content', 'wpautop'); ?> works, but it takes ALL of the paragraph breaks out. I only want to take the first one out.

Viewing 1 replies (of 1 total)
  • Thread Starter mriffey

    (@mriffey)

    I just went in and edited the formatting.php file and took out the <p> break.

    Like so:
    $pee .= '<p>' . trim($tinkle, "\n") . "</p>\n"; <— Line 194 in formatting.php (in wp-includes)

    to:

    $pee .= '' . trim($tinkle, "\n") . "</p>\n";

    I removed the <p> completely and it solved my problems, but left the additional paragraph breaks (like wpautop normally would).

Viewing 1 replies (of 1 total)
  • The topic ‘Remove space between header and content’ is closed to new replies.