• Hi, I have created a test site, https://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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    Thread Starter bg

    (@sobuddy)

    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?

    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.

    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.

    https://www.w3schools.com/

    Thread Starter bg

    (@sobuddy)

    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: https://buppha.co.uk/test/. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to make my ads on both sides of the wrapper stay the same side like header’ is closed to new replies.