WordPress.org

Ready to get started?Download WordPress

Forums

How to make my ads on both sides of the wrapper stay the same side like header (6 posts)

  1. bg
    Member
    Posted 2 years ago #

    Hi, I have created a test site, http://buppha.co.uk/test/, which I have made the wrapper wider so I could put adsense in there. But, after putting the ads on both sides of the wrapper I can't make them to stay inline with the header or the content?! Please help!

    Thanks!

  2. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    The way you did that screwed up some basic things on your page -- you can only use an ID once on a page and now you have two divs with the ID wrapper. You'd be better off using a layout that you can add adsense to -- not trying to modify the layout unless you know what you are doing.

    The positioning of elements is controlled by CSS -- so see the Codex on CSS and use Firebug to help you figure out which CSS to change.

    You might also want to look at Validating a Website as it will help you sort out the coding and CSS errors on the page. If you make changes, be sure the pages validate.

  3. bg
    Member
    Posted 2 years ago #

    Thanks for your prompt response! I just want to be able to put adsense on both side of the wrapper in which I could also see the ads when view it on a mobile as well. Now, it looks ugly on a mobile, but looks nice on pc?! So, I don't know what to do? Any suggestions?

  4. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    No, it does not look right at all on a PC -- at least not in Firefox on a Mac when the screen in not full width. The right side ad is on top of the page content and header, etc.

    As I said earlier, do not mess with the layout except in the CSS file -- you can add adsense into an existing layout -- find a theme that already has what you want. Putting those outside the page wrapper is going to continue to cause problems unless you know how to recode the entire page and the CSS.

  5. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    I just want to be able to put adsense on both side of the wrapper

    this still involves using valid html and css;

    you have to address the validation errors first -
    i.e. remove the html you added before the body tag, etc...

    helping with this level of fundamental programming and formatting is not within the scope of this WordPress forum.

    http://www.w3schools.com/

  6. bg
    Member
    Posted 2 years ago #

    Thanks for all your productive comments. I have now managed to create extra sidebars both left and right. But, I can't make them to stay inline with the header? And the content also being pushed too much to the left? So, how do I center the content and make the sidebars stay the same level as the header on both sides? Here's my test site: http://buppha.co.uk/test/. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic