I am having problem with Views Accordion when I am using Views Accordion and the Isotope Jquery plugin both on same page.

Isotope Jquery plugin seems to be working fine, but the Views Accordion looks crashed no CSS and functionality is working.

  • how are you adding the plugin is it through module? Jan 17, 2013 at 7:17
  • Actually Isotope plugin is pasted as a PHP code in to a block and plugin block is displayed inside content region. And Views Accordion is a view block displayed in the right side region.
    – AnAnD
    Jan 17, 2013 at 7:21
  • Within the Isotope plugin block, I link to two js files lik: <script src="[domain]/sites/all/libraries/js/jquery-1.7.1.min.js"></script> <script src="[domain]/sites/all/libraries/js/jquery.isotope.min.js"></script>
    – AnAnD
    Jan 17, 2013 at 7:23
  • this is where the issue comes up the jquery is already embedded with in the Drupal. So no need to embed it again. As I mentioned it would be better to go with a module rather than doing it this way. Jan 17, 2013 at 7:32
  • I am really sorry, there is no point of using the module
    – AnAnD
    Jan 17, 2013 at 7:35

1 Answer 1


There is a module called http://drupal.org/project/views_isotope

Using that would be better as it would play well with the rest of the js.

The js behavior with in drupal 7 has changed a bit and placing the js directly might not work well in many cases.

  • Views Isotope (drupal.org/project/views_isotope) This module cannot be used because I have customized layout and several other functionality which cannot be handled by view isotope module
    – AnAnD
    Jan 17, 2013 at 7:30
  • I agree with you that this is a problem with D7 behavior when adding <?php drupal_add_js ?> or adding a <script src="[domain]/sites/all/libraries/js/jquery-1.7.1.min.js"></script> when I remove the js links the views accordion works well.
    – AnAnD
    Jan 17, 2013 at 7:33
  • I tried using below code to add js files through themes, It did work, but the views accordion dose not still work: function MYTHEME_preprocess_html(&$variables) { drupal_add_js(drupal_get_path('theme', 'MYTHEME') . '/js/webbykat.js', array( 'scope' => 'header', 'weight' => '15' )); }
    – AnAnD
    Jan 17, 2013 at 9:37
  • What is the content of the js you are trying to add? Jan 17, 2013 at 9:48
  • these are the two file I am trying to load: 1> http://isotope.metafizzy.co/js/jquery-1.7.1.min.js 2> http://isotope.metafizzy.co/jquery.isotope.min.js
    – AnAnD
    Jan 17, 2013 at 10:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.