Hi will this work within a wordpress enfold site?
Hi codecreative!
We did not test it and we don’t know if it works or not. If you want to use it with Enfold I recommend to insert the canvas carousel code into the “Code Block” element. Note that we can’t provide support just in case it doesn’t work.
Best regards,
Peter
Ok thanks Peter.
Regarding the enque scripts is that best to still be done within functions.php ? Or functions-enfold.php?
Shame there isn’t a nice plugin developed yet to easily enque scripts the right way
Hi!
Yes, you can add this to the child theme or parent theme functions.php file. Enfold uses the standard wp_enqueue_script function: http://codex.wordpress.org/Function_Reference/wp_enqueue_script to enqueue scripts.
Cheers!
Peter
Hi Peter
Okay so I want to add the following,
// Carousel Files
wp_enqueue_script( ‘canvas-carousel-jquery’, $template_url.’/js/jquery.min.js’, array(), 2, false );
wp_enqueue_script( ‘canvas-carousel’, $template_url.’/js/jquery.mousewheel.js’, array(), 2, false );
wp_enqueue_script( ‘canvas-carousel-ease1′, $template_url.’/js/easel.js’, array(), 2, false );
wp_enqueue_script( ‘canvas-carousel-filter’, $template_url.’/js/easeljs/filters/Filter.js’, array(), 2, false );
wp_enqueue_script( ‘canvas-carousel-colorfilter’, $template_url.’/js/easeljs/filters/ColorFilter.js’, array(), 2, false );
wp_enqueue_script( ‘canvas-carousel-tween’, $template_url.’/js/tween.js’, array(), 2, false );
wp_enqueue_script( ‘canvas-carousel-canvascarousel’, $template_url.’/js/CanvasCarousel.js’, array(), 2, false );
Can I just simply create a file called functions.php and upload it to the child themes folder?
Hey!
As long as the $template_url is defined then yes that looks correct.
Best regards,
Devin