Title: maximum length for HTML element field
Last modified: November 14, 2020

---

# maximum length for HTML element field

 *  Resolved [mauinsons](https://wordpress.org/support/users/mauinsons/)
 * (@mauinsons)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/maximum-length-for-html-element-field/)
 * Hi, I have successfully inserted google ads into my website using the “after 
   HTML” option. My problem is, since I need to auto insert ads into a long list,
   and the page is not considered as a search page, so I have to manually select
   the <div> e.g. div.item3,div.item6,div.item9 etc.
 * However, I noticed that there’s a limitation on the character set for the HTML
   element input field. Is there anyway that I can go beyond this limitation? I 
   have close to 100 items in each page.
 * Thank you

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

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/maximum-length-for-html-element-field/#post-13662533)
 * Hello,
 * in most cases there should be no need to put more than few items.
 * Please provide all the data and desribe what you are trying to achieve:
    [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/)
 *  Thread Starter [mauinsons](https://wordpress.org/support/users/mauinsons/)
 * (@mauinsons)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/maximum-length-for-html-element-field/#post-13664409)
 * Hi,
 * This is the example page that I have used the “after HTML element” option: [https://parking.com.my/business/hair-salon-at-kuala-lumpur/](https://parking.com.my/business/hair-salon-at-kuala-lumpur/)
 * As you can see, I used div.item3, div.item6, div.item9 etc to auto insert ads
   after every 3 items in the list. As this is a custom page and not a search page,
   I am not able to use the “search page” option in the ad inserter plugin.
 * However, since this kind of custom pages could have up to 99 items in a page,
   so I will have to use “div.item3, div.item6, div.item9 and all the way to div.
   item99” to be able to cover the entire page.
 * I hope that you understand my explanation.
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/maximum-length-for-html-element-field/#post-13664594)
 * Don’t specify every possible element.
    Use a general approach with classes and
   set filter, for example:
 * `div.item.image-present.reviews-enabled`
 * and then use Server-side insertion (Output buffering needs to be enabled)
    [https://adinserter.pro/documentation/insertion-before-inside-after-html-element](https://adinserter.pro/documentation/insertion-before-inside-after-html-element)
 * and set Filter to `%3`:
    [https://adinserter.pro/documentation/additional-block-settings#filter](https://adinserter.pro/documentation/additional-block-settings#filter)

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

The topic ‘maximum length for 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/)

## Tags

 * [html element](https://wordpress.org/support/topic-tag/html-element/)

 * 3 replies
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/maximum-length-for-html-element-field/#post-13664594)
 * Status: resolved