Header

Posted in: Newspaper
Post count: 31

The Adsense header ad on my site refuses to center from the left of the row container when “header” is selected in the “Use adspot from:” drop-down” of the ad box element. If I select custom ad 2 using the same Adsense code the ad is centered and fine in the header. I even moved the custom ad 2 into the same row in the header to make sure the problem wasn’t with the row and confirmed that the problem is not with the row. I also remove all custom CSS code from my site and confirmed that that wasn’t the problem. Literally, the only thing that seems to be causing this problem is that I am using the header ad spot instead of another ad spot. What is going on and how can I fix this?

Post count: 18283

Hello !

Please provide a link to your website in order to take a look.

Thank you !

Post count: 31

Hey, I created a test clone of my site and sent the login credentials to contact@tagdiv.com as I didn’t want the left header ad live on the site. Let me know if you got it.

Post count: 35449

Hi,
I do not know this for sure because I do not know how to identify your email. I see that you sent to the correct address therefore the email should get to us.
Thank you!

Post count: 31

Hey, I have yet to receive a reply and no one has logged in into the test site to check out this ad alignment problem I am having. I have sent it once more and the email should have “edged” in its name as I do not want to disclose too much info publically.

  • This reply was modified 5 years by Edged.
Post count: 35449

Hi,

I just ask my colleague and they said that was an email that have the “edged” in its name, but contain a link to set a password and a link to connect without details about the problem you are facing!
I checked the problem and is look that the header ad was set on full width, therefore I added in css tab margin left and right auto and I set a fix width, now is centered.
Another way is to set another row that is nit stretch and set in it the ad box.

Thank you!

Post count: 31

Hello,

The email was sent directly by WordPress after creating the account, but I will make sure to send it myself in the future. No matter the width of the ad row the ad would still not center. My question is why do you have to add margin when before it used to center by itself? I want to know why the other add types such as custom ad 1,2,… and so on work fine but “header” ad doesn’t anymore?

Post count: 35449

Hi,

As I can see, your header ad is center now -> https://i.imgur.com/edHGt0f.png
Also you need to set the width and header because the space alcoate for header add is set on full width and you ad is force to 728x90px, therefore, you need to add for it that width and to center it you need to add in css tab margin left and right auto like this -> https://i.imgur.com/XAYydKx.png

Thank you!

Post count: 31

This doesn’t fully explain why I didn’t have to set the CSS for the other ad spots that just centered on there own with the same AdSense code. But you did solve my problem and was very helpful. So thank you very much!

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.