Home » Javascript » How to add Jquery No Conflict in a js file

How to add Jquery No Conflict in a js file

Posted by: admin August 19, 2018 Leave a comment

Questions:

in order to fix a jquery conflict between 2 different essential plugins installed in my joomla site, i have to put jQuery Into No-Conflict Mode in a .js file, how can I do this in this portions of code?

$document->addScript(JURI::base().'plugins/content/avatar_slide_galleria/assets/js/galleria.min.js');

and in this one?

jQuery.noConflict();
(function($) {
  $(document).ready(function() {
    Galleria.loadTheme('<?php echo JURI::base()."plugins/content/avatar_slide_galleria/assets/js/galleria.".$plgGalleria[$countPlg]->theme.".js"?>');
    Galleria.JURI = "<?php echo JURI::base(); ?>plugins/content/avatar_slide_galleria/assets/images/loader.gif";
Answers: