Non Block & Dynamic Ad Groups are broken
-
The other thread has been marked resolved, but the problem has not been resolved, the fix linked does not apply to Ad Groups that are not using Block or Dynamic, so I have posted this here since the other thread is mistakenly marked as Resolved.
Your updates completely screwed up the ads sizes and alignment. And before you post a link to that we need to set our group sizes, you need to consider that not all groups have the same size banners, and also group size is only for block mode, which I do not use, and the ads are still be cut off and moved to the left, so your solution is not a solution at all. Please fix.
These DIVs seem to be causing the issue
<div class="g g-1"><div class="g-single a-18">After looking at the styles added, seems as though you are adding block style to ads that are not using block mode. My ads do not use block and this style have been added to the header along with the divs wrappers listed above.
.g { position:relative; margin:0px; padding:0px; overflow:hidden; line-height:1; zoom:1; } .g-dyn { display:none; } .g-col { position:relative; float:left; } .g-col:first-child { margin-left: 0; } .g-col:last-child { margin-right: 0; } .g-1 { margin:1px; min-width:1px; max-width:127px; min-height:1px; max-height:127px; } @media only screen and (max-width: 480px) { .g-col, .g-dyn, .g-single, .g-postinject { width:100%; margin-left:0; margin-right:0; } }This is where the problem lies. You are applying Block styles even though Block is not selected in the Group Settings.
I said it before, but I’ll say it again. Ad Groups do not necessarily have the same size banners in them, i.e. some are 468×60, 468×80, 600×250, etc, because the area that they are put may allow a variety of sizes.
I was able to fix the problem by adding this to my child theme style.css file
/* AdRotate Fix */ .g { position:relative; margin:0px; padding:0px; overflow:visible !important; line-height:1; zoom:1; } .g-1 { margin:1px; min-width:1px; max-width:100% !important; min-height:1px; max-height:100% !important; }The changes were the max-width & max-height to 100% !important in the .g-1 class, and also the overflow: visible !important in the .g class.
I am assuming that .g-1 is for group 1 and .g-2 is for group 2, etc, so you will need to change each one for each group you have. I only posted .g-1 to keep it short.
But with over 100 sites running ads, this is a huge task to fix this way.
The topic ‘Non Block & Dynamic Ad Groups are broken’ is closed to new replies.