Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter wildstarone

    (@wildstarone)

    And while we’re at it, how do I replace that white space with an advertisement.

    Look, I’m not a whiz at this. But if you’re trying to replace white space someplace like your right or left column you probably need to use a widget and put the advertisement there.

    To insert an advertisement, you need the plug in Widget Shortcode. (Can’t figure out how to make it link here…you can find it easily on www.ads-software.com if you search). Once you install it there will be an Arbitrary area in you Widget section. Make a text widget in that section and insert your ad code. Once you’ve saved it it will generate a widget ID number. Then go to your header.php (in a child theme), and insert the following code wherever you want it (I put mine below the header):
    <?php echo do_shortcode(‘[widget id=”text-17″]’) ?>

    In order to center the ad enter the following code directly to the widget box above the ad code: <div style=”text-align: center;”>

    Please tell me if you figure out how to reduce the padding below the ad. It’s driving me crazy and I’ve been searching and searching for how to do it!

    By the way, in the code I showed you above, you’ll replace the 17 with whatever your widget ID number is.

    I’m trying to remove that white space as well. Does anyone have an answer for that specifically? I keep making edits, but nothing has been demonstrating any change. ??

    Try this in your CSS.

    .content-area, .content-sidebar {
    	padding-top: 0px !important;
    }

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to remove space between header and content?’ is closed to new replies.