Support ForumHow do you disable FancyBox? – Support Forum https://support.ishyoboy.com/forums/topic/how-do-you-disable-fancybox/feed/ Sat, 18 May 2024 14:45:49 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/how-do-you-disable-fancybox/#post-10073 <![CDATA[How do you disable FancyBox?]]> https://support.ishyoboy.com/forums/topic/how-do-you-disable-fancybox/#post-10073 Mon, 28 Sep 2015 06:57:25 +0000 zencroww Hi there,
Tried to override/ empty it like:

Disable theme’s FancyBox via child theme by overriding JS function “activate_fancybox”

In the Child theme functions, I added:
add_action( ‘save_post’, ‘karasu_save_feature_video’ );

function ishyoboy_activate_fancybox_on_blog_single() {
}

ish.activate_fancybox = function (){
}

In /wp-content/themes/no8/assets/frontend/js/main.js, I tried emptying where Fancybox is.

But it made my site buggy, ie portfolio feature images wont load.

What is the easiest way to disable FancyBox? Im using another lightbox plugin.

Cheers,

]]>
https://support.ishyoboy.com/forums/topic/how-do-you-disable-fancybox/#post-10078 <![CDATA[Reply To: How do you disable FancyBox?]]> https://support.ishyoboy.com/forums/topic/how-do-you-disable-fancybox/#post-10078 Tue, 29 Sep 2015 06:48:17 +0000 IshYoBoy Hi zencroww,

unfortunately there is nothing easiest way to disable FancyBox. It is little bit complicated because you have to override php and javascript code.

Please try it again, We can try to explain it a little bit more.

1. Open your “functions.php” file inside child theme and add this code at the end of the file:

2. Create custom file: in the root of child theme please create folders “assets/js” and there create file “my-custom.js”

3. Open “my-custom.js” file and insert this code:

Please don’t remove nothing from original main.js file!
Each of this functions from this file you are able override in your my-custom.js file.

This should help you disable FancyBox ;)

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>