Support » Plugin: Youtube with Style » [Plugin: Youtube with Style] Using The Gallery

  • Ok…I’ve honestly been trying to figure this out for a while and can’t get it.
    The gallery feature means you can have multiple videos in a set similar to a playlist on your site.

    If that is the case, how do I go about setting that up. I’ve searched just about everywhere and can’t find instructions 🙁

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have been trying to figure out how to set up the gallery also. I wish someone would reply to this post.



    Got it. First step, create a page with something like the following:


    Next step is all in the init.php file. Go to the following link:


    Here is what I changed:

    //Commented out by Josh to solve gallery problem
       		//if(is_active_widget('youtube_widget')) {
    			wp_register_style('highslide', YT_URL . 'highslide/highslide.css');
    			wp_register_script('highslide', YT_URL . 'highslide/highslide-with-html.packed.js', false);
    function youtube_add_highslide() {
    	//Removed the active widget condition because I'm using a shortcode
    	if( /*(is_active_widget('youtube_widget')) && */ (!is_admin())) {
    	echo '
    	<script type="text/javascript">
    		hs.graphicsDir = "'.YT_URL.'highslide/graphics/";
    		hs.outlineType = "rounded-white";
    		hs.outlineWhileAnimating = true;
    		hs.showCredits = false;
    		hs.wrapperClassName = "draggable-header no-footer";
    		hs.allowSizeReduction = false;
    		hs.preserveContent = false;

    Basically, because it isn’t in the widget, it doesn’t load the highslide javascript include. Therefore the gallery doesn’t work. Do this at your own risk. Maybe leaving the highslide javascript function on all the time is bad, but I’m having a hard time finding out whether a shortcode is used in a page. Enjoy and good luck.

    Plugin Author Chris McCoy


    i will be going through the code this weekend to fix any issues, i have a big list on what to fix.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Youtube with Style] Using The Gallery’ is closed to new replies.