WordPress.org

Support

Support » Plugins and Hacks » Cool Video Gallery » [Resolved] [Plugin: Cool Video Gallery] conflict with 'FancyBox for WordPress'

[Resolved] [Plugin: Cool Video Gallery] conflict with 'FancyBox for WordPress'

  • with this 2 plugins : cool-video-gallery and ‘FancyBox for WordPress’
    it make the navigation arrows of fancybox disapears.

    solution:
    hack the function addPlayerHeader() in cool-video-gallery.php
    and comment the lines 830 to 831.

    please add an option to desactivate your fancybox.
    advise : use register_script() and enqueue_script() , do not print javascript in wp_head() its really a bad practice.

    http://wordpress.org/extend/plugins/cool-video-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Praveen Rajan

    @praveen-rajan

    @ zetoun17

    Thanks for the advise.

    Regards,
    Praveen Rajan

    I am having a conflict with the fancybox from my theme, and the fancybox from cool video gallery.

    Please advise how I can disable the fancybox in cool video gallery. I have version 1.8

    I looked in cool-video-gallery.php and line 829-831 are:

    ‘id’ => $screen_id,

    ‘title’ => __( ‘Overview’, ‘plugin_domain’ ),

    This is obviously the wrong lines to hack. Please help!!

    with version 1.8 in cool-video-gallery.php

    function addPlayerHeader(){
    
      $options_settings = get_option('cvg_settings');
      echo "<!-- Cool Video Gallery Script starts here -->";
      wp_enqueue_script('jwplayer', $this->video_player_url . 'jwplayer.js', '');
      //wp_enqueue_script('jquery.fancybox', $this->plugin_url . 'third_party_lib/fancybox/jquery.fancybox-1.3.4.pack.js', 'jquery');
      //wp_enqueue_style('jquery.fancybox', $this->plugin_url . 'third_party_lib/fancybox/jquery.fancybox-1.3.4.css', 'jquery');

    comment wp_enqueue_script and wp_enqueue_style as above

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: Cool Video Gallery] conflict with 'FancyBox for WordPress'’ is closed to new replies.
Skip to toolbar