Support ForumDisable theme’s FancyBox via child theme by overriding JS function “activate_fancybox” – Support Forum https://support.ishyoboy.com/forums/topic/disable-themes-fancybox-via-child-theme-by-overriding-js-function-activate_fancybox/feed Thu, 26 Dec 2024 20:23:28 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/disable-themes-fancybox-via-child-theme-by-overriding-js-function-activate_fancybox/#post-4998 <![CDATA[Disable theme’s FancyBox via child theme by overriding JS function “activate_fancybox”]]> https://support.ishyoboy.com/forums/topic/disable-themes-fancybox-via-child-theme-by-overriding-js-function-activate_fancybox/#post-4998 Wed, 08 Oct 2014 18:30:43 +0000 jaredthequad Hey Guys, first off great theme! I love your theme but just need one thing tweaked. I have added a different lightbox plugin and I know your theme by default opens images with Fancybox. How can I stop this? Right now all of my images are opening in two lightboxes.

Thanks, Jared

]]>
https://support.ishyoboy.com/forums/topic/disable-themes-fancybox-via-child-theme-by-overriding-js-function-activate_fancybox/#post-5009 <![CDATA[Reply To: Disable theme’s FancyBox via child theme by overriding JS function “activate_fancybox”]]> https://support.ishyoboy.com/forums/topic/disable-themes-fancybox-via-child-theme-by-overriding-js-function-activate_fancybox/#post-5009 Thu, 09 Oct 2014 07:37:12 +0000 IshYoBoy Hi Jared,

Thank you very much! All are themes are like that ;)

To deactivate fancyBox you need to do it in 2 steps:

1. Disable it on “single” pages:

Define an empty function in your child theme’s “functions.php” file:

2. Disable it on portfolio and other parts

You need to override a JavaScript function that we use to activate the fancybox. And so “ish.activate_fancybox”

See this reply to a similar question:

Overriding default JS functions with child-theme (Skills animation duration and delay)

Again, make it empty:

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

]]>