- Posts: 11
- Thank you received: 0
jQuery conflict
-
mikefna
Inactive member - Topic Author
- New Member
Less
More
9 years 8 months ago #44727
by mikefna
jQuery conflict was created by mikefna
Hi all,
We're having ongoing jQuery conflict issues at our News Portal site. Is there some way of countering this?
Cheers,
Mike
We're having ongoing jQuery conflict issues at our News Portal site. Is there some way of countering this?
Cheers,
Mike
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
9 years 8 months ago #44730
by ivan.milic
Replied by ivan.milic on topic jQuery conflict
You can try some tricks for renaming '$' alias for jQuery and putting it in no-conflict mode.
e.g.
e.g.
Code:
<script src="jquery.js"></script>
<script>
var $j = jQuery.noConflict();
// $j is now an alias to the jQuery function; creating the new alias is optional.
</script>
Please Log in to join the conversation.
-
mikefna
Inactive member - Topic Author
- New Member
Less
More
- Posts: 11
- Thank you received: 0
9 years 8 months ago #44734
by mikefna
Replied by mikefna on topic jQuery conflict
Thanks.
Is that in the template CSS?
Is that in the template CSS?
Please Log in to join the conversation.
-
mikefna
Inactive member - Topic Author
- New Member
Less
More
- Posts: 11
- Thank you received: 0
9 years 8 months ago #44735
by mikefna
Replied by mikefna on topic jQuery conflict
I put the above code in the head area of index.php and it had no effect.
www.fightnewsaustralia.com/index.php/gal...n-card-photo-gallery
As you can see, the top menu drop down tab stays down. We are also using a photo gallery on that page, which I think is causing the conflict.
www.fightnewsaustralia.com/index.php/gal...n-card-photo-gallery
As you can see, the top menu drop down tab stays down. We are also using a photo gallery on that page, which I think is causing the conflict.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
9 years 8 months ago #44737
by ivan.milic
Replied by ivan.milic on topic jQuery conflict
I see what problem is. You included jquery twice. View source of your page
www.fightnewsaustralia.com/index.php/gal...n-card-photo-gallery
and on line 13 and line 78 there is jQuery included. Include it only once, leave the one on the top. Check if some component or plugin have option include jQuery and disable it.
www.fightnewsaustralia.com/index.php/gal...n-card-photo-gallery
and on line 13 and line 78 there is jQuery included. Include it only once, leave the one on the top. Check if some component or plugin have option include jQuery and disable it.
Please Log in to join the conversation.
Time to create page: 0.141 seconds