Where can I define the 'container' selector (I don't want to use 'container'?
For that matter, where can I change 'masonry-item; selector to something else?

Thanks.

Comments

andrew smith’s picture

Aha - found it in Context.
...but is there anywhere else?

...I cannot get this module to work!
Manually putting the script into the theme and adding selectors in Views rows works fine - just not this module! Any help would be appreciated.

Anonymous’s picture

In what context are you trying to use Masonry? Fields, Views, Context, or something else?

For the first three, there are submodules you can use that automatically set the container and item selectors based on the settings you provide in the UI. If however you're using Masonry outside of these examples, you'll need to configure them yourself. Masonry core provides a central location for the script and the Libraries API allows you to load it, after that you can do as you wish based on the instructions here: http://masonry.desandro.com/docs/options.html

andrew smith’s picture

I'm using Masonry Views mainly.
It works in a different theme (Garland), so the problem is clearly a conflict between my theme and Masonry Views, though the original script loaded through .info does work with my theme (but doesn't offer the flexibility of your module).

Thank-you for a great module and for responding. I just need to find that conflict now.

andrew smith’s picture

scripts[] = js/jquery.min.js
- I deleted this from theme.info and it works now!

Anonymous’s picture

Status: Active » Fixed

Yeah, jQuery is provided by Drupal core so trying to add another instance of it results in conflicts.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.