WordPress.org

Support

Support » How-To and Troubleshooting » I added ADSENSE and now all of my content is CENTERED

I added ADSENSE and now all of my content is CENTERED

Viewing 5 replies - 1 through 5 (of 5 total)
  • It happens when I try to center the ad. I removed the ad centering and now the site is fine. How do I center my ad so that it doesn’t center everything? 🙂

    Moderator Mark Ratledge

    @songdogtech

    Forum Moderator

    Use a <center> tag and the adsense code and then close the center tag, like this: </center>

    When I do that, it also centers everything else on my blog. Any thoughts? 🙂

    Thank you for responding by the way. I really appreciate it. 🙂

    Michael

    @alchymyth

    Forum Moderator

    start by moving your adsense code to after this line:
    <div id="wrapper" class="hfeed">

    (where it is now, is causing invalid html output – check with http://validator.w3.org/ )

    there is no reason to assume that adding the <center>….</center> tags should cause any centered content after the ads;

    possibly try to clear the browser cache after you made the changes – press ‘ctrl f5’ or ‘reload’ ….

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘I added ADSENSE and now all of my content is CENTERED’ is closed to new replies.
Skip to toolbar