WordPress.org

Ready to get started?Download WordPress

Forums

WP Vegas
[resolved] Hardcode Straight Into the Header (8 posts)

  1. cartar929
    Member
    Posted 1 year ago #

    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://wordpress.org/extend/plugins/vegas-fullscreen-background-slider/

  2. jamesdbruner
    Member
    Plugin Author

    Posted 1 year ago #

    Hey, sorry I didn't notice this question earlier. I'll take a more in depth look when I get home from work!

  3. cartar929
    Member
    Posted 1 year ago #

    James that would be great thanks.

  4. jamesdbruner
    Member
    Plugin Author

    Posted 1 year ago #

    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

  5. cartar929
    Member
    Posted 1 year ago #

    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!

  6. jamesdbruner
    Member
    Plugin Author

    Posted 1 year ago #

    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!

  7. cartar929
    Member
    Posted 1 year ago #

    Sure thing just rated 5 stars because it's the shiiiiiiiiiit!

  8. jamesdbruner
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks man! Your site's looking great by the way. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic