Title: Layer-Ads in WordPress !?!?
Last modified: August 18, 2016

---

# Layer-Ads in WordPress !?!?

 *  [viperiii](https://wordpress.org/support/users/viperiii/)
 * (@viperiii)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/layer-ads-in-wordpress/)
 * Where do i have to add my Layer-Ad Code in order to be displayed on the main 
   page:
 *     ```
       <script Language="JavaScript">
       document.write ('<scr' + 'ipt Language="JavaScript" src="http://www.###.de/showme.php?id=#####&rnd=' + Math.random() + '"></scr' + 'ipt>');
       </script>
       ```
   
 * Usually i put it before </body> in index.php!
 * What about WordPress!? 🙂

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

 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/layer-ads-in-wordpress/#post-628148)
 * For over 90% of themes, you’d put that in your theme’s footer.php then.
 *  Thread Starter [viperiii](https://wordpress.org/support/users/viperiii/)
 * (@viperiii)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/layer-ads-in-wordpress/#post-628230)
 * ok…i tried it everywhere in footer.php!!!
    but look yourself on [http://samstagszocker.de.vu](http://samstagszocker.de.vu)–
   the layer-ad isn’t properly shown yet !!!!
 * here’s the code with the layer-script at the end:
 *     ```
       <hr />
       <div id="footer">
   
       		<a href="http://themey.com/soccer-wordpress-theme">Soccer WordPress Theme</a> from <a href="http://www.avivadirectory.com/">Aviva Web Directory</a>
       		<a class="footerrss" href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a>
       		and <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>.
       		<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
   
       </div>
       </div>
       </div>
   
       		<?php wp_footer(); ?>
       <script Language="JavaScript">
       document.write ('<scr' + 'ipt Language="JavaScript" src="http://www.euros4click.de/showme.php?id=12363&rnd=' + Math.random() + '"></scr' + 'ipt>');
       </script>
       </body>
       </html>
       ```
   
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/layer-ads-in-wordpress/#post-628246)
 * Well, I’ll not be able to check. As soon as popups start, I leave.
 * Make sure you’re editing the footer.php that belongs to your current active theme.
 *  Thread Starter [viperiii](https://wordpress.org/support/users/viperiii/)
 * (@viperiii)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/layer-ads-in-wordpress/#post-628280)
 * ohh sorry…actually i did not want to add a popup on the page….
    NOW it is only
   the layer-ad that ist shown!!!!
 * With the following code, it looks better, i have put the script directly at the
   beginning of the footer.php,
    but the layer-ad still is not properly shown 🙁
 * Yes, it is the current active footer.php 😉
 *     ```
       <script Language="JavaScript">
       document.write ('<scr' + 'ipt Language="JavaScript" src="http://www.euros4click.de/showme.php?id=12363&rnd=' + Math.random() + '&popup=false&layer=true"></scr' + 'ipt>');
       </script>
   
       <hr />
       <div id="footer">
   
       		<a href="http://themey.com/soccer-wordpress-theme">Soccer WordPress Theme</a> from <a href="http://www.avivadirectory.com/">Aviva Web Directory</a>
       		<a class="footerrss" href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a>
       		and <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>.
       		<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
   
       </div>
       </div>
       </div>
       		<?php wp_footer(); ?>
   
       </body>
       </html>
       ```
   
 *  Thread Starter [viperiii](https://wordpress.org/support/users/viperiii/)
 * (@viperiii)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/layer-ads-in-wordpress/#post-628438)
 * i’ve chosen another provider for my layers.. now everthings fine!!!
    so it seems
   as if it was a problem with the code of my last provider :]

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

The topic ‘Layer-Ads in WordPress !?!?’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 5 replies
 * 2 participants
 * Last reply from: [viperiii](https://wordpress.org/support/users/viperiii/)
 * Last activity: [18 years, 5 months ago](https://wordpress.org/support/topic/layer-ads-in-wordpress/#post-628438)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
