Can only add one block at a time - possible jquery conflict?
Permalink
Hi,
I'm working on a site right now and the editor only allows me to add one block to any area at a time. It will add the block, then refresh the page, then I can't add any other block to any other area. The cursor switches to a crosshair with arrows (i really don't know the name of it). I have to save/publish, then add another block then save/publish etc.
I have looked through the forums and at the suggestion of one of them, I removed the jQuery call in my theme. It fixed the issue, but as a non-logged-in user, jQuery doesn't fire. I've incorporated the jquery asset call in the page_theme.php file as per the documentation. Once i do that, it goes back to the original behavior. The console doesn't output a ton of valuable information, however I am a novice with javascript + php.
I'm currently using foundation as my CSS framework. my footer script calls are like so:
How do i fix this?
I'm working on a site right now and the editor only allows me to add one block to any area at a time. It will add the block, then refresh the page, then I can't add any other block to any other area. The cursor switches to a crosshair with arrows (i really don't know the name of it). I have to save/publish, then add another block then save/publish etc.
I have looked through the forums and at the suggestion of one of them, I removed the jQuery call in my theme. It fixed the issue, but as a non-logged-in user, jQuery doesn't fire. I've incorporated the jquery asset call in the page_theme.php file as per the documentation. Once i do that, it goes back to the original behavior. The console doesn't output a ton of valuable information, however I am a novice with javascript + php.
I'm currently using foundation as my CSS framework. my footer script calls are like so:
<script src="<?php echo $view->getThemePath()?>/bower_components/modernizr/modernizr.js"></script> <script src="<?php echo $view->getThemePath()?>/bower_components/foundation/js/foundation.min.js"></script> <script src="<?php echo $view->getThemePath()?>/js/app.js"></script> <script src="<?php echo $view->getThemePath()?>/bower_components/foundation/js/foundation/foundation.magellan.js"></script> <script src="<?php echo $view->getThemePath()?>/js/jquery.swipebox.min.js"></script> <?php Loader::element('footer_required'); ?> </body> </html>
How do i fix this?
Just to double check, are you requiring the jQuery asset in your page_theme.php?
$this->requireAsset('javascript', 'jquery');
Have you tried commenting out all your script tags, then uncommenting out the tags one by one? This might point to a problematic file.