Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #304996

    Hi will this work within a wordpress enfold site?

    http://themeforest.net/item/html5-canvas-carousel/2018225

    #305019

    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

    #305025

    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

    #305030

    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

    #305667

    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?

    #305705

    Hey!

    As long as the $template_url is defined then yes that looks correct.

    Best regards,
    Devin

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.