WordPress.org

Forums

Cool Video Gallery
[resolved] conflict with 'FancyBox for WordPress' (4 posts)

  1. zetoun17
    Member
    Posted 2 years ago #

    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/

  2. Praveen Rajan
    Member
    Plugin Author

    Posted 2 years ago #

    @ zetoun17

    Thanks for the advise.

    Regards,
    Praveen Rajan

  3. jayreezy
    Member
    Posted 1 year ago #

    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!!

  4. zetoun17
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Cool Video Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic