Elegant Themes (in)compatibility

Your Account / Forums / Easy FancyBox Pro / Elegant Themes (in)compatibility

  • Author
    • February 17, 2014 at 11:21 pm #3408

      Hi all,

      Most themes from Elegant Themes include FancyBox. But sadly without (m)any options to tweak the look and usage of the lightbox. And the fact that FancyBox is already included makes them incompatible with Easy FancyBox.


      One user, Horst Weber, has just e-mail me about his experience with making one of the Elegant Themes work with Easy FancyBox. In his case it was the theme called Origin, but a similar method should apply to other themes. This is his way to disable the theme-included FancyBox so that Easy FancyBox will work as intended:

      1. Make sure you have the original theme zip available as backup;
      2. Go to the WordPress admin Theme Editor and open the themes functions.php.
      3. Locate the function that handles the inclusion of script and stylesheets. In the Origin theme it is called function origin_scripts(). In that function, there will be these (or similar) 3 lines:

      wp_register_script( 'origin_fancybox', get_template_directory_uri() . '/js/fancybox/jquery.fancybox-1.3.4.pack.js', array( 'jquery' ), '1.0', true );
      wp_enqueue_script( 'origin_fancybox' );


      wp_enqueue_style( 'origin_fancybox-stylesheet', get_template_directory_uri() . '/js/fancybox/jquery.fancybox-1.3.4.css', false, 1.0, 'screen' );

      Remove them or comment them out by placing two forward slashes // at the beginning of each line. Then save the modifications.

      From now on, Easy FancyBox will be able to take control over your media links.

      Please note that these changes will have to be done again if you install a newer version of the theme or if you switch to another one of the Elegant Themes.

  • You must be logged in to reply to this topic.