Title: HTML element field
Last modified: January 5, 2021

---

# HTML element field

 *  Resolved [heisenjeff](https://wordpress.org/support/users/heisenjeff/)
 * (@heisenjeff)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/html-element-field/)
 * Hello, I have successfully created Ads placements in my website using the “after
   HTML” option by selecting “div.tg-automotive”, but it’s shown after every element
   as you can see here :
    [https://ibb.co/vhDjhSw](https://ibb.co/vhDjhSw)
 * Instead, I want the ad to be showen after 5 or 6 element like this for example:
   [https://ibb.co/zNHR67w](https://ibb.co/zNHR67w)
 * kindly provide my any suggestions in order to fix this
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhtml-element-field%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/html-element-field/#post-13868631)
 * Hello,
 * if you are using (default) client-side insertion you need to construct appropriate
   element selector for the nth element.
 * However, it would be much easier if you set insertion to server-side
    [https://adinserter.pro/documentation/insertion-before-inside-after-html-element](https://adinserter.pro/documentation/insertion-before-inside-after-html-element)
 * and then set Filter to 5 or 6:
    [https://adinserter.pro/documentation/additional-block-settings#filter](https://adinserter.pro/documentation/additional-block-settings#filter)
 * Alternatively you can set insertion to **After paragraph** and configure it to
   count `div` elements which contain `tg-automotive`:
    [https://adinserter.pro/documentation/paragraph-settings#counting](https://adinserter.pro/documentation/paragraph-settings#counting)
 * And then simply set paragraph numbers to 5 or 6.
 *  Thread Starter [heisenjeff](https://wordpress.org/support/users/heisenjeff/)
 * (@heisenjeff)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/html-element-field/#post-13869422)
 * thanks

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

The topic ‘HTML element field’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [heisenjeff](https://wordpress.org/support/users/heisenjeff/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/html-element-field/#post-13869422)
 * Status: resolved