Title: [Plugin:  Promotion Slider] How do I code this into my header?
Last modified: August 19, 2016

---

# [Plugin: Promotion Slider] How do I code this into my header?

 *  Resolved [jasonvincik](https://wordpress.org/support/users/jasonvincik/)
 * (@jasonvincik)
 * [15 years ago](https://wordpress.org/support/topic/how-do-i-code-this-into-my-header/)
 * I am a total idiot when it comes to PHP, and especially the inner-workings of
   the WordPress loop.
 * I want to replace my header image with the slider, but just can’t figure out 
   where in header.php to do this. It seems as though I’ve tried everything, but
   my old header image appears along with the promotion slider 🙁
 * Header.php code located here: [http://pastebin.com/BqC9nhkc](http://pastebin.com/BqC9nhkc)
 * Any help would be much appreciated!

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

 *  Plugin Author [Micah Wood](https://wordpress.org/support/users/woodent/)
 * (@woodent)
 * [15 years ago](https://wordpress.org/support/topic/how-do-i-code-this-into-my-header/#post-2063075)
 * Without seeing the actual layout of the site, I am not entirely sure what element(
   s) needs replacing.
 *  Thread Starter [jasonvincik](https://wordpress.org/support/users/jasonvincik/)
 * (@jasonvincik)
 * [15 years ago](https://wordpress.org/support/topic/how-do-i-code-this-into-my-header/#post-2063081)
 * oops.
 * [http://www.greencoffins.net/content](http://www.greencoffins.net)
 *  Plugin Author [Micah Wood](https://wordpress.org/support/users/woodent/)
 * (@woodent)
 * [15 years ago](https://wordpress.org/support/topic/how-do-i-code-this-into-my-header/#post-2063085)
 * Turns out you are looking at more than just ‘replacing’ an element. To remove
   the current image from your header, you will have to change your CSS file to 
   disable the background image for the #header element.
 * Next, you will want to add this to line number 66 of your header.php file:
 *     ```
       <?php echo do_shortcode('[promoslider id="header_slider" category="header-slider" width="975px" height="300px"]'); ?>
       ```
   
 * You will then need to make further adjustments to your CSS to get the promotion
   slider to appear in the proper flow on the page.
 * Finally, you will want to create a category called ‘Header Slider’ and assign
   any slider items to want to appear in the header to that category. If you don’t
   create the category, all the slider items will appear by default.
 *  Thread Starter [jasonvincik](https://wordpress.org/support/users/jasonvincik/)
 * (@jasonvincik)
 * [15 years ago](https://wordpress.org/support/topic/how-do-i-code-this-into-my-header/#post-2063089)
 * Genius! Thank you, it’s working and I was able to adjust the CSS and position
   it correctly.
 * I sincerely appreciate your prompt assistance.
 *  [kashishberry](https://wordpress.org/support/users/kashishberry/)
 * (@kashishberry)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/how-do-i-code-this-into-my-header/#post-2063206)
 * I am having a similar problem…. my current header has a nivo slider installed
   into it, but my version of wordpress doesn’t support nivo slider, so I would 
   like to replace that with the promotional slider.
 * My header.php file’s present code is `
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * Could u please help me how to edit it so that the promotional slider replaces
   either Nivo or any other option…
 * Thanks
 *  Plugin Author [Micah Wood](https://wordpress.org/support/users/woodent/)
 * (@woodent)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/how-do-i-code-this-into-my-header/#post-2063207)
 * Sorry, your code was moderated. Please paste a link to the code on [pastebin](http://wordpress.pastebin.com/).
   Thanks!

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

The topic ‘[Plugin: Promotion Slider] How do I code this into my header?’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/promotion-slider.svg)
 * [Promotion Slider](https://wordpress.org/plugins/promotion-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/promotion-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/promotion-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/promotion-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/promotion-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/promotion-slider/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Micah Wood](https://wordpress.org/support/users/woodent/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/how-do-i-code-this-into-my-header/#post-2063207)
 * Status: resolved