Title: Inserting code between indexed content
Last modified: August 31, 2016

---

# Inserting code between indexed content

 *  [llrajsll](https://wordpress.org/support/users/llrajsll/)
 * (@llrajsll)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/inserting-code-between-indexed-content/)
 * Hello,
 * I need to add some code between the content thumbnails (Advertisement code to
   be more specific). I need to place it after the first 3 tiles. Here’s a [SCREENSHOT ](http://i.imgur.com/nm9IU7w.png)
   for you so you can get the idea easily.
 * Below is the ad code that I need to insert:
 *     ```
       <!-- Composite Start -->
       <div id="M152751ScriptRootC53236">
           <div id="M152751PreloadC53236">
               Loading...
           </div>
           <script>
                       (function(){
                   var D=new Date(),d=document,b='body',ce='createElement',ac='appendChild',st='style',ds='display',n='none',gi='getElementById';
                   var i=d[ce]('iframe');i[st][ds]=n;d[gi]("M152751ScriptRootC53236")[ac](i);try{var iw=i.contentWindow.document;iw.open();iw.writeln("<ht"+"ml><bo"+"dy></bo"+"dy></ht"+"ml>");iw.close();var c=iw[b];}
                   catch(e){var iw=d;var c=d[gi]("M152751ScriptRootC53236");}var dv=iw[ce]('div');dv.id="MG_ID";dv[st][ds]=n;dv.innerHTML=53236;c[ac](dv);
                   var s=iw[ce]('script');s.async='async';s.defer='defer';s.charset='utf-8';s.src="//jsc.mgid.com/z/o/zonlinemovies.com.53236.js?t="+D.getYear()+D.getMonth()+D.getDate()+D.getHours();c[ac](s);})();
           </script>
       </div>
       <!-- Composite End -->
       ```
   

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

 *  Thread Starter [llrajsll](https://wordpress.org/support/users/llrajsll/)
 * (@llrajsll)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/inserting-code-between-indexed-content/#post-7387222)
 * BUMP
 *  [Menaka S.](https://wordpress.org/support/users/menakas/)
 * (@menakas)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/inserting-code-between-indexed-content/#post-7387223)
 * Hi,
    You could hook into **tc_grid_separator** and think of some mechanism to
   make it do this only once.

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

The topic ‘Inserting code between indexed content’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/customizr/4.4.24/screenshot.png)
 * Customizr
 * [Support Threads](https://wordpress.org/support/theme/customizr/)
 * [Active Topics](https://wordpress.org/support/theme/customizr/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/customizr/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/customizr/reviews/)

## Tags

 * [ad code](https://wordpress.org/support/topic-tag/ad-code/)
 * [advertisement](https://wordpress.org/support/topic-tag/advertisement/)
 * [code](https://wordpress.org/support/topic-tag/code/)

 * 2 replies
 * 2 participants
 * Last reply from: [Menaka S.](https://wordpress.org/support/users/menakas/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/inserting-code-between-indexed-content/#post-7387223)
 * Status: not resolved