Jquery conflict, area not editable
Permalink
I'm having issues with my project's Jquery and C5 not playing nicely together. I thought I had everything figured out the other day when I removed my duplicate link to Jquery (since C5 calls its own), moved the <?php Loader::element('header_required'); ?> above all my other Javascript references, and moved the one JS reference giving me issues to the footer.php.
However now I'm realizing the editable areas I put in my template are not editable, and I've isolated the problem to the one script I moved to the footer. I'm still pretty new to Jquery and C5, so I was wondering if anyone can point me in the right direction.
Here's the script giving me issues -
However now I'm realizing the editable areas I put in my template are not editable, and I've isolated the problem to the one script I moved to the footer. I'm still pretty new to Jquery and C5, so I was wondering if anyone can point me in the right direction.
Here's the script giving me issues -
jQuery(document).ready(function() { jQuery('.portfolio-hover').css({opacity: 0}); jQuery('.portfolio-hover').hover(function(){ jQuery(this).addClass('current_project'); jQuery('.current_project').stop().animate({opacity: 1}, 400); }, function(){ jQuery('.current_project').stop().animate({opacity: 0}, 300); jQuery('.current_project').removeClass('current_project'); }); /* Isotope -------------------------------------*/ if( jQuery().isotope ) { jQuery(function() { var container = jQuery('.portfolio-items'), optionFilter = jQuery('#filters'), optionFilterLinks = optionFilter.find('a');
Viewing 15 lines of 164 lines. View entire code block.
That worked perfectly!! Thanks a bunch!
I had the exact same issue and was going round in circles trying to figure it out. Disabling the offending javascript whilst in editing mode has worked a treat!
I had some kind of problem. My jQuery UI and jQuery rotate had a conflict with the edit mode and uploading files. With this, it works perfectly!
Thanks!
Thanks!
You can also disable certain javascript while in edit mode by wrapping them in a php conditional based on if you are in edit mode.