-
AuthorPosts
-
May 23, 2012 at 11:00 pm #177470
I am using JA Community Plus and Mega Menu with CiviCRM. I am running J2.5.4 and CiviCRM 4.1.2.
When I load a CiviCRM profile (like member list), or new member page, or event display, *** from a menu link only ***etc. the sub-menu items on Mega Menu will not drop down. The base menu items still work, so when I click to another menu page that does not include a CiviCRM function, the sub-menus work fine. If I load a CiviCRM function using a wrapper or <embed src…> command, for example, the Mega Menu works fine. It is only when I build the menu item using one of the built-in civiCRM selections that it does this behavior.I have submitted a ticket on CiviCRM forum (actually added to an existing one) http://forum.civicrm.org/index.php/topic,24174.0.html , but we are not getting any feedback.
JA folks are always helpful! So thanks in advance if you can help.
Craig
tfosnom Friendtfosnom
- Join date:
- October 2010
- Posts:
- 742
- Downloads:
- 0
- Uploads:
- 31
- Thanks:
- 145
- Thanked:
- 200 times in 94 posts
May 24, 2012 at 7:45 am #454645Hi There
Generally when the Mega menu sub menus wont work, its a JQuery conflict, many plugins and extensions have an option to fix JQuery conflicts or not load it. In most 2.5 templates JQuery has been already loaded by another item. It appears two loads is one to many, I’m unfamilar with the CiviCRM settings, so suggest you look in the backend for a JQuery conflict fix option or option to turn off JQuery. Another possible solution to try may be to turn JS optimisation etc. to NO in template manager parameters.Cheers Shannon
1 user says Thank You to tfosnom for this useful post
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 25, 2012 at 4:12 am #454835And post link here where we can see the issue 🙂
June 11, 2012 at 2:25 pm #456973The link is currently
On the front page, you will see that Mega Menu works fine. If you select “New Membership” under the “Membership” menu, it will display a CiviCRM form. Now, on this page, the Mega Menu hover sub-menus do not work.
I added a module called “JQuery Easy”, and when I enabled it, the Mega Menu would work on the “New Membership” page, but all of the CiviCRM form would not display.
I really appreciate any help from the community.
Thanks,
CraigNinja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
June 26, 2012 at 9:50 am #458882Hi Craig,
I have checked on your site. I saw it’s conflicted jQuery with Mootools,
<script type="text/javascript">var cj = jQuery.noConflict(); $ = cj;</script>
<script type="text/javascript">
cj('#crm-container')
.live('click', function(event) {
if (cj(event.target).is('.btn-slide')) {
var currentActive = cj('#crm-container .btn-slide-active');
currentActive.children().hide();
currentActive.removeClass('btn-slide-active');
cj(event.target).children().show();
cj(event.target).addClass('btn-slide-active');
} else {
cj('.btn-slide .panel').hide();
cj('.btn-slide-active').removeClass('btn-slide-active');
}
});
</script>
please open code com_civicrm component and find above script and add script below
<script type="text/javascript">jQuery.noConflict();</script>
Regards
1 user says Thank You to Ninja Lead for this useful post
June 30, 2012 at 8:21 pm #459402Thanks Ninja! I had kind of given up since I hadn’t seen a reply for some time. Thank you for looking at this and taking the time to analyze my site. I put the suggested code in the “jquery.js” file for the civivrm component (at the very bottom) and that worked.
Much appreciated !!
-
AuthorPosts
This topic contains 6 replies, has 4 voices, and was last updated by tso2085 12 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum