• Resolved creativevegans

    (@creativevegans)


    Hi,
    I have managed to place an ad (adsense) between the first and second post on the homepage of my blog. I did this by inserting some code in the main index template of my child theme. The problem now is how to style the ad. As you can see by visiting my blog, the ad is smack on top of the title of my second post. I have tried all sorts of way of calling the adsense ad in the stylesheet to add a margin underneath, but to no avail. If any of you know how I could add some space between the ad and the post, please help me!
    Thank you so much!
    Sincerely,
    Maria
    creativevegancooking.com

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Maria,

    I don’t know if that’s the best way to implement the ad, just as an aside.

    To answer your question, I think you can probably surround your ad with a div and style it that way.

    Example:

    <div style="margin-bottom:20px">
    (your ad code)
    </div>
    Thread Starter creativevegans

    (@creativevegans)

    Great! It works. Thanks!
    Where would you suggest to put the ads for maximum benefit (I don’t want the site to look spammy)?

    That’s a very hard question to answer in terms of spammy-ness lol.

    To some, ads will always look spammy, regardingless of where or how.

    I guess mixing it in with your content might be the best for ‘maximum benefit’, but you might want to get second and third opinions as well.

    Thread Starter creativevegans

    (@creativevegans)

    Thank you. I value your input.

    No problem ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Ads between posts: Styling’ is closed to new replies.