Answer the question
In order to leave comments, you need to log in
Why doesn't fancybox work in joomla 3?
Good day to all.
I'm trying to connect fancybox to joomla (downloaded the latest stable version). Further, in the js file, where I write my scripts, I write
$(document).ready(function() {
$('a.gallery').fancybox();
});
Answer the question
In order to leave comments, you need to log in
I solved the problem. If anyone is interested, then instead
try to write
Well and to the heap in $(document).ready(function() {}); You can also change the dollar sign to jQuery. Helped me
$('a.gallery').fancybox();
jQuery('a.gallery').fancybox();
This is jQuery's default behavior in no-conflict mode jQuery. noConflict here is an answer on a similar topic explaining why jQuery and not $
Doesn't understand the $ character Jquery?
This is how to connect jquery to Joomla without jQuery.noConflict
read more about how to disable on the forum https://joomlaforum.ru/index.php?topic=253684.0
JHtml::_('jquery.framework', false, null, false);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question