Title: HTML element setting
Last modified: February 22, 2022

---

# HTML element setting

 *  Resolved [maybenot](https://wordpress.org/support/users/maybenot/)
 * (@maybenot)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/html-element-setting/)
 * Hi there,
 * I want to double check whether I’ve done this correctly.
 * Just for one ads block, I’m using HTML element. On general settings, Output buffering
   is enabled. Dynamic blocks are set to Client-side insert.
 * And then, for this block only, I selected Server-side.
 * Is this correct?
 * One of your replies says “if you are using caching then you can’t use any server-
   side insertion.”
 * So I’m a little confused. I’m using LiteSpeed Cache Plugin. And this is for AdSense.
 * Thanks!

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

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/html-element-setting/#post-15390893)
 * Dynamic blocks mean content that dynamically changes (ad rotation, blocks based
   on client-side checks, etc.)
    [https://adinserter.pro/documentation/plugin-settings#dynamic-blocks](https://adinserter.pro/documentation/plugin-settings#dynamic-blocks)
 * Insertion at HTML elements can be done client-side (via Javascript code) or server-
   side (when the page is generated, no pseudo selectors can be used).
    This has
   nothing to do with dynamic blocks or caching. [https://adinserter.pro/documentation/insertion-before-inside-after-html-element](https://adinserter.pro/documentation/insertion-before-inside-after-html-element)
 *  Thread Starter [maybenot](https://wordpress.org/support/users/maybenot/)
 * (@maybenot)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/html-element-setting/#post-15390963)
 * Thanks for your super fast response!
 * It goes to show how confused I am. I read those pages which is why I chose server-
   side insertion for this HTML element as it says “server-side insertion is the
   best approach” with output buffering enabled.
 * For the sake of my exceptionally thick brain, can you confirm my set up is correct?
   Or is it just a matter of preference as both are acceptable? Or perhaps one option
   gives better speed on Mobile over the other?
 * It’s for AdSense only. HTML element is for featured image.
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/html-element-setting/#post-15390975)
 * It is just a matter of preference.
 * Client-side insertion causes layout shift so try to use server-side insertion
   if possible.
    In both cases use the shortest and the simplest element selector(
   s).
 *  Thread Starter [maybenot](https://wordpress.org/support/users/maybenot/)
 * (@maybenot)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/html-element-setting/#post-15391041)
 * Ah I see – thanks.
 * So, on general settings, leave Output buffering Enabled as default. Change Dynamic
   Blocks to Server side (should work fine with LiteSpeed Cache?).
 * No need to do anything for all the other “normal” blocks.
 * For this HTML element block, enter “_.featured-media image_” and select insertion
   Server-side.
 * Sounds about right?
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/html-element-setting/#post-15391052)
 * No, you should set Dynamic Blocks to Client-side insert.
 * Other setting are ok.
 *  Thread Starter [maybenot](https://wordpress.org/support/users/maybenot/)
 * (@maybenot)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/html-element-setting/#post-15391133)
 * Ha I knew it!
 * So my initial set up was okay thanks to all your helpful documentation! Thanks
   again for double checking it for me.
 * Left a review now. Have a good day 🙂
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/html-element-setting/#post-15391140)
 * Thank you!

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

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

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