-
AuthorPosts
-
August 15, 2014 at 5:09 pm #304996
Hi will this work within a wordpress enfold site?
August 15, 2014 at 6:42 pm #305019Hi 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,
PeterAugust 15, 2014 at 6:51 pm #305025Ok 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
August 15, 2014 at 6:55 pm #305030Hi!
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!
PeterAugust 18, 2014 at 11:57 am #305667Hi 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?
August 18, 2014 at 12:55 pm #305705Hey!
As long as the $template_url is defined then yes that looks correct.
Best regards,
Devin -
AuthorPosts
- You must be logged in to reply to this topic.
