WordPress.org

Ready to get started?Download WordPress

Forums

HeatMap AdAptive
[resolved] How To Center Ads In Widget? (8 posts)

  1. adystanley
    Member
    Posted 1 year ago #

    I tried both:

    <center> ADSENSE CODE </center>
     <div align="center"> ADSENSE CODE </div>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    But don't work. How can i center the Adsense Ads on your theme?

  2. stuartwider
    Member
    Theme Author

    Posted 1 year ago #

    adystanley,

    Ad widget positions are styled via CSS, and there are a number of them in the theme. Which particular widget position are you referring to? It is helpful if you provide a url so we can see where exactly you mean.

  3. adystanley
    Member
    Posted 1 year ago #

    Ok.
    Detailed:

    Theme - Widgets - Heatmap AdAdaptive Ad and put it in Post (inline). Now put the following text inside it:

    <center> ADSENSE CODE </center>

    or

    <div align="center"> ADSENSE CODE </div>

    These two didn't center my Adsense Ad.
    How can i center it?

  4. stuartwider
    Member
    Theme Author

    Posted 1 year ago #

    Post inline position is designed to always float to the left of the title.
    If what you actually want is your ad to sit centered below the post title then the post in-content position is a better choice.

    To center that in the css you'd need add this at the bottom of style.css...

    #heatmapthemead-widget-position-postincontent .widget {
    text-align: center;
    }

    However, these days Mr Google does not like content to be pushed 'below the fold' in favour of ads, so its probably not the best idea if you are using adsense ads. ;)

    If you want more flexibility with alignment of your ads then Click Missile plugin which comes with the Pro version of this theme will make it easier for you.

  5. adystanley
    Member
    Posted 1 year ago #

  6. stuartwider
    Member
    Theme Author

    Posted 1 year ago #

    It worked for me when I tried it, but if you would post a url then I could see exactly what you are trying to do and advise you on the best approach.
    Partial screenshots do not provide the information required.
    Thanks.

  7. stuartwider
    Member
    Theme Author

    Posted 1 year ago #

    adystanley,
    You haven't responded with a url for me to look at so I'll close this as resolved.

  8. lesliejen2win
    Member
    Posted 11 months ago #

    Can someone please help me. The top and right widgets are pulling left and I don't know how to fix it. Thanks.

    http://idnamyjntsu.com/

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.