Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #298229

    Trankuility
    Participant

    Question #1) How do I adjust the settings so the top of the blog entry rests against the bottom of the adsense ad?

    How to remove the space?

    Question #2 How do I adjust the width of the adsense placement so it’s as wide as the blog section (see blue markings)?

    Example of space removed, plus how to widen leaderboard

    Site is bellybanish.com.

    #298811

    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! To remove the space between the banner ad and the container of the post, please add the following css code in the customizer, Appearance > Customize > Custom > CSS

    .x-container.offset{
        margin-top: 0;
    }

    To adjust the width of the adsense placement so it’s as wide as the blog section, please add the following css code in the customizer, Appearance > Customize > Custom > CSS. The width of the banner ads will depend on the GA code settings.

    .site .adsbygoogle {
        margin: 0 auto !important;
        max-width:  1200px;
    }

    Please let us know if this resolves the issues.

    #299085

    Trankuility
    Participant

    The margin has been successfully removed, thank you.

    However, the ad block is in the center of the screen, instead of aligned with the blog content. How do I fix?

    Ad block not aligned

    #299615

    Lely
    Moderator

    Hello There,

    Please add the following code in your Customizer via Appearance > Customize > Custom > CSS:

    #ad_iframe{
      left: 30% !important;
    }

    If this doesn’t do the trick, please set this on where you generate the code for ads.

    Hope this helps.