Viewing 7 replies - 1 through 7 (of 7 total)
  • Usually you can add a div class around your addsense, then just add some padding to the bottom of the div.

    <div class"entry__content">
    <?php the_content() ;?>
    </div>
    <div class="myadsense">
    Adsense code here
    </div>
    <?php wp_link_pages(); ?>

    Then
    .myadsense { padding-bottom: 25px; }

    You have two <div class=”entry__content”> in that screenshot, should it have two? Also, did you add the top: 400px; to the .acp_wrapper #acp_paging_menu? That probably won’t work out if you did and used that article as a height.

    Thread Starter nreddy

    (@nreddy)

    What do you mean by “Then

    .myadsense { padding-bottom: 25px; } “

    Where would this snippet of code be placed?

    Thread Starter nreddy

    (@nreddy)

    And thank you for pointing out the duplicate <div class=”entry__content”> . I deleted one of them.

    That would be added to your style.css I can’t say for sure it would work it was just an example, the html was a bit jumbled when I looked at it, but that’s basically how I would go about doing it.

    Thread Starter nreddy

    (@nreddy)

    It’s not working for some reason. The wp_link_pages(); seems to float above everything else because even when I add
    to the single.post the footer shifts down, but the next button stays in its place.

    Could an alternate solution be found by adding wp_link_pages(); to the footer? Simply moving the code to under <footer class=”entry__meta cf”> did not work because the position still is in the same place. Please let me know your thoughts.

    Thread Starter nreddy

    (@nreddy)

    *when i add <“br”> (I guess it did an actual br in the above post)

    Thread Starter nreddy

    (@nreddy)

    used a plugin to place an ad right after the content. After this was done, I tried to remove the advertisement that was originally there which I added through single.php. However, when I did this, wp_link_pages(); (the next/previous button) moved down into the footer for some reason, rendering them unclickable.

    For reference:

    Sample article- http://topnewsdaily.us/2015/02/top-5-party-schools-in-the-us/

    Original code- http://i.imgur.com/7Yzz5Wm.png

    Original display – http://imgur.com/VgLWNUs

    After the ad is deleted – http://imgur.com/Ve3XzKN

    I do not understand why the next button moves all the way down into the footer. To remedy this, I was thinking about adding a blank white rectangle that has the same dimensions as the AdSense code.

    Is there any way to create a white rectangle using <script> tags like AdSense uses?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Adding Space between an Ad and a Widget’ is closed to new replies.