Title: Extra div Block
Last modified: April 14, 2019

---

# Extra div Block

 *  Resolved [theukdirectory](https://wordpress.org/support/users/theukdirectory/)
 * (@theukdirectory)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/extra-div-block/)
 * Hi,
 * I currently use DFP handle my ad serving but wanted to use Advanced Ads to control
   which dfp tags show on my site depending on the tag/category the post is in. 
   I’ve I’ve some content that isn’t suitable to show Adsense on so thought this
   would be a perfect solution.
 * I have a responsive site and depending on the screen size ads show in different
   locations depending on the screen size, this is all controlled from within the
   dfp tag.
 * This was working fine until I set up advanced ads.
 * I set everything up in advanced ads and everything Worked perfectly or so I thought.
 * I’ve now noticed that some of the formattings is off on the page when the page
   isn’t the right size for the ad to be shown.
 * I’ve pinned down the problem and it seems that advanced ads is wrapping my adcode
   in a div block: As seen in the example below
 * <div class=”bigst-articleinline” id=”bigst-1992775293″><div class=”adsbygoogle”
   id=”div-gpt-ad-1234567891235-0″ style=”display: none;”> </div></div>
 * Is there any way for me to change this so it just outputs my ad code without 
   wrapping it in the div?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/extra-div-block/#post-11428370)
 * Hi theukdirectory,
 * thanks for reaching out.
 * Advanced Ads does indeed add an additional wrapper to ads placed automatically
   using our placements. It is needed for some features to work properly and removing
   it might break compatibility.
 * I would like to learn more to see if there is another solution for you since 
   I have never had an issue with DFP in these containers. Is there something hand-
   coded in your DFP ads that need the body tag to be placed without a container?
 * Thanks,
    Thomas
 *  Thread Starter [theukdirectory](https://wordpress.org/support/users/theukdirectory/)
 * (@theukdirectory)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/extra-div-block/#post-11428481)
 * Hi Thomas,
 * Thanks for your quick reply, you can ignore my question, it’s my mistake, after
   a long day in front of the computers when setting it up, I’ve forgotten to tick
   a box in my theme so that it doesn’t apply margins, sizes etc to the ad area 
   when at mobile screen size.
 * Because the dfp box collapses itself if no ad is showing, so the theme formatting
   wasn’t showing, I’d mis diagnosed it to the extra div containers.
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/extra-div-block/#post-11428746)
 * Thank you for your update. I know these long days 🙂
 * Please let me know if you need anything else.
 * Thomas

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Extra div Block’ is closed to new replies.

 * ![](https://ps.w.org/advanced-ads/assets/icon-256x256.gif?rev=2773443)
 * [Advanced Ads – Ad Manager & AdSense](https://wordpress.org/plugins/advanced-ads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-ads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-ads/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-ads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-ads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-ads/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/extra-div-block/#post-11428746)
 * Status: resolved