Recent Update Twenty Twelve
-
Hi All,
I have a child theme running on Twenty Twelve, and thought my theme would withstand any updates due to this as have all the modified files in the correct structure.
I have recently carried out the 3.6 update and didn’t notice any issues, and now carried out the Twenty Twelve update. I now have an issue with a lightbox variant called Fancybox.
The issue is the image instead of popping out and centering on the screen, it appears at the top of the page full size, and cannot be cleared except by navigating away.
This is a code extract from the functions.php file in my child theme concerned with the Fancybox.
/* 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' );
A sample of the problem can be viewed here;
https://coder-tronics.com/state-machine-tutorial-pt1/
The original tutorial I followed is here;
Cheers,
Ant
- The topic ‘Recent Update Twenty Twelve’ is closed to new replies.