Centering Google Ads on page

I’m trying to center the google ad on this page - with no luck. This would apply to just this page - https://www.palmspringslife.com/todd-test/

sample of google code looks like this

I’ve centered row, column and section - but neither helps.

Any suggestions welcome - Thanks- Todd

div id=‘div-gpt-ad-xxxxxxxxxxxxxxx-0’>
script
googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-xxxxxxxxxxxxxxx-0’); });
/script
/div

Hey @toddfmay,

Thanks for reaching out!

I check your Google ads and it is inside an iframe. Just want to let you know that we cannot style content inside an iframe if the source file is coming from the 3rd party website. That being said, I highly suggest reaching out to Google ads.

Hope that helps.

I just checked out the website and it’s happening because the Integrity stack has CSS that makes iframes 100% in width:

When this is disabled, it changes to the correct size and centers the ad:

So i guess @toddfmay would like to know how to disable that css from integrity

Thanks johanschack that lead me to a solution -

Added to the mentioned page and it fixed the issue -
.entry-content embed, .entry-content iframe, .entry-content object {
width: 970px;
max-width: 100%;
}

FYI - this is not needed when placing ads in the header or footer builders - only when placing ads within a page or post content blocks

Hey @toddfmay,

We’re glad that you’re able to figure it out! If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.