Hi,
I'm having some trouble enqueuing isotope/masonry/infinite scroll scripts.
I'm using wpquery for creating various blog and portfolio post layouts via a page builder. Theres various layout styles/columns, each one duplicated for isotope filter, masonry, fit rows, masonry + infinite scroll or fit rows + infinite scroll.
I've tried to create one big script containing all these isotope options using various div classes on the layout templates, but with no success. (masonry responds slow and infinite scroll just doesn't work)
I can get the desired effect working by linking the script directly on the loop template used (and splitting up the isotope jquery functions), but I dont think this is recommended.
the templates I'm referring to are not wordpress page templates, they are the post layout templates I've created, located in mytheme/loop-templates/portfolio or mytheme/loop-tempaltes/blog. So using the conditional if is page (page) will not work.
does anybody know how to condition the script load for a custom page location like the one in my setup?
Any feedback on this would be a really great help.
Many thanks!