Title: Hardcode Straight Into the Header
Last modified: August 20, 2016

---

# Hardcode Straight Into the Header

 *  Resolved [cartar929](https://wordpress.org/support/users/cartar929/)
 * (@cartar929)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hardcode-straight-into-the-header/)
 * Is there a way to put the javascript code into the header.php versus putting 
   the shortcode into an individual page?
 * [http://www.cartertilman.com/theshow/](http://www.cartertilman.com/theshow/)
 * [http://wordpress.org/extend/plugins/vegas-fullscreen-background-slider/](http://wordpress.org/extend/plugins/vegas-fullscreen-background-slider/)

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

 *  Plugin Author [jamesdbruner](https://wordpress.org/support/users/jamesdbruner/)
 * (@jamesdbruner)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hardcode-straight-into-the-header/#post-3416353)
 * Hey, sorry I didn’t notice this question earlier. I’ll take a more in depth look
   when I get home from work!
 *  Thread Starter [cartar929](https://wordpress.org/support/users/cartar929/)
 * (@cartar929)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hardcode-straight-into-the-header/#post-3416354)
 * James that would be great thanks.
 *  Plugin Author [jamesdbruner](https://wordpress.org/support/users/jamesdbruner/)
 * (@jamesdbruner)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hardcode-straight-into-the-header/#post-3416355)
 * From what I can tell, your question is very similar to the other question posed
   here not too long ago.
 * Have you tried the do_shortcode solution? Here it is: (Note that this is in your
   header.php)
 *     ```
       <?php
       /**
        * The template for displaying front page pages.
        *
        */
       ?>
       <?php get_header(); ?>
       <?php echo do_shortcode( '[vegasslider id="5" fade="800" overlay="http://demo.jamesdbruner.com/wp-content/uploads/2012/12/az_subtle.png"]' ) ?>
       ```
   
 * Obviously replace my shortcode in the single quotes with yours.
 * EDIT: Here’s the other page I was talking about: [http://wordpress.org/support/topic/vegas-slider-doesnt-work?replies=19](http://wordpress.org/support/topic/vegas-slider-doesnt-work?replies=19)
 *  Thread Starter [cartar929](https://wordpress.org/support/users/cartar929/)
 * (@cartar929)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hardcode-straight-into-the-header/#post-3416356)
 * Sorry for not realizing the similarities between this question and the other 
   one. But, that worked perfectly thanks for the help and your plugin is freaking
   sweet!
 *  Plugin Author [jamesdbruner](https://wordpress.org/support/users/jamesdbruner/)
 * (@jamesdbruner)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hardcode-straight-into-the-header/#post-3416357)
 * I’m glad I could help and thanks man, I appreciate it! If you don’t mind rating
   the plugin for me though, that would make my day!
 *  Thread Starter [cartar929](https://wordpress.org/support/users/cartar929/)
 * (@cartar929)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hardcode-straight-into-the-header/#post-3416358)
 * Sure thing just rated 5 stars because it’s the shiiiiiiiiiit!
 *  Plugin Author [jamesdbruner](https://wordpress.org/support/users/jamesdbruner/)
 * (@jamesdbruner)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hardcode-straight-into-the-header/#post-3416359)
 * Thanks man! Your site’s looking great by the way. 🙂

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

The topic ‘Hardcode Straight Into the Header’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/vegas-fullscreen-background-slider_4d4d4d.
   svg)
 * [WP Vegas](https://wordpress.org/plugins/vegas-fullscreen-background-slider/)
 * [Support Threads](https://wordpress.org/support/plugin/vegas-fullscreen-background-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/vegas-fullscreen-background-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/vegas-fullscreen-background-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/vegas-fullscreen-background-slider/reviews/)

## Tags

 * [do_shortcode](https://wordpress.org/support/topic-tag/do_shortcode/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 7 replies
 * 2 participants
 * Last reply from: [jamesdbruner](https://wordpress.org/support/users/jamesdbruner/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/hardcode-straight-into-the-header/#post-3416359)
 * Status: resolved