Title: meth0's Replies | WordPress.org

---

# meth0

  [  ](https://wordpress.org/support/users/meth0/)

 *   [Profile](https://wordpress.org/support/users/meth0/)
 *   [Topics Started](https://wordpress.org/support/users/meth0/topics/)
 *   [Replies Created](https://wordpress.org/support/users/meth0/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/meth0/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/meth0/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/meth0/engagements/)
 *   [Favorites](https://wordpress.org/support/users/meth0/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [wp-banner?](https://wordpress.org/support/topic/wp-banner/)
 *  [meth0](https://wordpress.org/support/users/meth0/)
 * (@meth0)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/wp-banner/#post-764364)
 * p.s the patch only works with positioning within an id tag.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [wp-banner?](https://wordpress.org/support/topic/wp-banner/)
 *  [meth0](https://wordpress.org/support/users/meth0/)
 * (@meth0)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/wp-banner/#post-764363)
 * The Author’s website illuminates nothing in regards to positioning banners using
   div tags. It doesn’t help that the code used to nest the banner div in a parent
   element doesn’t work. So to save anyone else the hassle…
 * After installing the plug-in: –
 * 1) Open plugins/wp-banner/js/tools.js
 * FIND: `parentName.appendChild(banner);` (line 38)
    REPLACE: `parentName.appendChild(
   banner);` WITH: `document.getElementById(parentName).appendChild(banner);`
 * 2) Decide where you want to display the div banner within the WP theme, you’ll
   need the element tag, id, or class name. By default, it displays as the first
   div in WP’s “container” div. If you want to make the banner display in the “header”
   div for example, you have to modify the plugin. Open plugins/wp-banner/banner.
   php
 * FIND: `echo "<script>InsertElement('id','bannerHook','bannerdiv')</script>";`(
   ~line 110)
    REPLACE: `echo "<script>InsertElement('id','content','bannerdiv')
   </script>";` WITH: `echo "<script>InsertElement('id','header','bannerdiv')</script
   >";`
 * The final step would be to modify the banner css (plugins/wp-banner/styles/default.
   css -> #bannerdiv{}) to fit your theme and if required, the theme’s css (#header)
   as well.

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