Add a CSS identifier to each ad block
-
Please add a CSS ID selector in the generated div container.
$adscode = "\n".'<!-- WP QUADS Content Ad Plugin v. ' . QUADS_VERSION .' -->'."\n".'<div class="quads-location" id="ads'.$adn.'"'.' style="'.$style.'">'."\n".$adscode."\n".'</div>'. "\n";
And remove the inline styling inline for the margins (because they will override). You can leave the float in.
// $style = sprintf($arr[(int)$adsalign], $adsmargin); $style = $arr[(int)$adsalign];
In $adsalign, just keep the float. Get rid of the margin.
This will allow us to custom style each ad block based on adsN identifier. Presently, you are forcing us to your layout. Frankly, the ads do not look good inline with no margin in the ads that are in the post. In the ads in the widget, they have way too much margin surrounding them.
By putting in the identifier, we can then adjust this at will.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add a CSS identifier to each ad block’ is closed to new replies.