Title: HTML Element Spacing
Last modified: March 25, 2019

---

# HTML Element Spacing

 *  Resolved [tfrmark](https://wordpress.org/support/users/tfrmark/)
 * (@tfrmark)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/html-element-spacing/)
 * I’m having some issues placing ads without making my website look sloppy. I’ve
   tried having them come before/after paragraphs, but that breaks up the content
   too much. I tried “after image” but the ad displays between the image and the
   caption.
 * The best results I’ve found was by adding it before HTML elements and using my
   H2 headings. Unfortunately, this causes the ads to display before EVERY H2 heading
   and is far too often.
 * I’m curious if there’s a way to select how often it shows up on a certain element,
   or how far down the page (like with paragraphs: 0.2, 0.4, etc…) it displays. 
   Or maybe a way for it to display on every second element.
 * please let me know if there is a way to do this, I’m really struggling to make
   this work.
 * Thanks

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

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/html-element-spacing/#post-11351612)
 * Insertion after image should not insert between image and captions.
    To check
   you need to post page address and enable remote debugging: [https://wordpress.org/support/topic/ad-inserter-support-before-you-ask-for-help/](https://wordpress.org/support/topic/ad-inserter-support-before-you-ask-for-help/)
 * You can use insertion before/after paragraph also with h2 headings.
    Set **Paragraphs
   with tags** to h2: [https://adinserter.pro/documentation/paragraph-settings#counting](https://adinserter.pro/documentation/paragraph-settings#counting)
 * This way you can use all possible values for paragraph counting.
 *  Thread Starter [tfrmark](https://wordpress.org/support/users/tfrmark/)
 * (@tfrmark)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/html-element-spacing/#post-11384206)
 * I’m assuming the reason for the caption issue is because I’m using a caption 
   shortcode from my theme. I just checked again and it does place the ad between
   the image and caption.
 * However, I took your second suggestion for the paragraphs and now it’s working
   perfectly! Thank you so much, I never would have figured that out otherwise. 
   This plugin is phenomenal!
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/html-element-spacing/#post-11384253)
 * 🙂
 * > This plugin is phenomenal!
 * Please say it here:
    [https://wordpress.org/support/plugin/ad-inserter/reviews/#new-post](https://wordpress.org/support/plugin/ad-inserter/reviews/#new-post)
 * Thank you!

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

The topic ‘HTML Element Spacing’ is closed to new replies.

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

 * 3 replies
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/html-element-spacing/#post-11384253)
 * Status: resolved