• Resolved Antscran

    (@antscran)


    Hi all,

    Trying to narrow down what has happened as recently updated WordPress from 3.5.2 to 3.6 and also the Twenty Twelve theme from 1.1 to 1.2.

    I have a child theme with a few minor modifications, one of which was a Lightbox clone called fancybox. I used the tutorial to implement fancybox for Twenty Twelve taken from here WPTUTS here

    http://wp.tutsplus.com/tutorials/theme-development/add-a-responsive-lightbox-to-your-wordpress-theme/

    I have removed the Twenty Twelve update and the issue still persists, now wondering if this is caused by the 3.6 WordPress update?

    My website and a page that contains images that previously worked can be seen here http://coder-tronics.com/microcontroller-gpio-protection/

    My child Functions.php only contains the following code related to Fancybox, so not sure what the issue is at this stage?

    /*********************----------
    * LIGHTBOX CLONE CODE SECTION
    ----------*********************/
    
    /* SCRIPTS AND STYLES FOR FANCYBOX ---------------------------------------- Add acripts and styles for Fancybox */
    function twentytwelve_add_lightbox() {
        wp_enqueue_script( 'fancybox', get_template_directory_uri() . '/inc/lightbox/js/jquery.fancybox.pack.js', array( 'jquery' ), false, true );
        wp_enqueue_script( 'lightbox', get_template_directory_uri() . '/inc/lightbox/js/lightbox.js', array( 'fancybox' ), false, true );
        wp_enqueue_style( 'lightbox-style', get_template_directory_uri() . '/inc/lightbox/css/jquery.fancybox.css' );
    }
    add_action( 'wp_enqueue_scripts', 'twentytwelve_add_lightbox' );

    Any help would really be appeciated,

    Cheers,

    Ant

Viewing 1 replies (of 1 total)
  • Thread Starter Antscran

    (@antscran)

    I know the issue now just trying to solve, my javascript files were in the main theme folder, as using get_template_directory_uri()

Viewing 1 replies (of 1 total)
  • The topic ‘Lightbox clone not working after update Twenty Twelve Theme’ is closed to new replies.