New Landing How can we help? Themeforest Theme Support Dante lightbox and easy fancy box conflict

Viewing 14 posts - 1 through 14 (of 14 total)
  • Posted in: Dante
  • #208710
    toni100
    Member
    Post count: 148

    hi,

    in order to get lightbox working for the meta slider plugin i had to install the easy fancy box plugin – if i now open a jpg then there are two lightboxes openend…

    any ideas how i can deactivate the internal lightbox or get the internal lightbox working for the meta slider plugin?

    thank you

    #209301
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    In your child theme functions.php file, please add this to dequeue the ilightbox JS file.

    function swift_dequeue_ilightbox_script() {
       wp_dequeue_script( 'sf-ilightbox' );
    }
    add_action( 'wp_print_scripts', 'swift_dequeue_ilightbox_script', 100 );

    Thanks,
    David.

    #210587
    toni100
    Member
    Post count: 148

    i does not work, deactivates the whole function file…

    #210867
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    What you mean by the entire function file?
    Thanks

    -Rui

    #211548
    toni100
    Member
    Post count: 148

    i copied it into the functions.php – but it does not work…

    Attachments:
    You must be logged in to view attached files.
    #211582
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Are you sure you have added that to the child theme functions.php?

    Please add a login so I can double check that.

    – David.

    #211638
    toni100
    Member
    Post count: 148
    This reply has been marked as private.
    #211987
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You don’t have any child theme. You should install it(it’s inside our Themeforest files) and add the code to the functions.php of the child theme like David suggested.

    Because every update will replace any modification in the parent theme, loosing all the changes.

    -Rui

    #212946
    toni100
    Member
    Post count: 148

    hi,

    i installed the child theme now – but then the lightbox is completely deactivated even the one from the plugin…

    #213183
    David Martin – Support
    Moderator
    Post count: 20834

    Hello,

    You have not activated the child theme? Please activate the Dante child theme. http://www.ferienland-stubai.at/wp-admin/themes.php.

    – David.

    #213330
    toni100
    Member
    Post count: 148

    when i deactivate it then it only opens the images in a blank page not with lightbox

    #213603
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    The Dante child theme on your site contains the code to remove the iLightbox included within Dante.

    function swift_dequeue_ilightbox_script() {
       wp_dequeue_script( 'sf-ilightbox' );
    }
    add_action( 'wp_print_scripts', 'swift_dequeue_ilightbox_script', 100 );

    You will need to activate the child theme and activate the plugin you first mentioned: “meta slider plugin”

    Thanks.

    #226840
    toni100
    Member
    Post count: 148

    does not work…

    #226967
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please try to use this code:-

    function swift_dequeue_ilightbox_script() {
    wp_deregister_script('sf-ilightbox');   
    wp_dequeue_script( 'sf-ilightbox' );
    }
    add_action( 'wp_enqueue_scripts', 'swift_dequeue_ilightbox_script', 100 );
    

    Thanks
    Mohammad

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register