aethel
Forum Replies Created
-
@dylankeefer yes, see my other thread. I fixed it by editing my theme’s header.php.
Well.. (for anyone else searching for this issue) I was unable to get this to work without creating a child of my theme that calls wp_enqueue_script(‘jquery’); in the header.php, because it loads too late via the foogallery plugin dependencies in any of my themes that weren’t already calling jquery. (Using just the plugin dependencies, it loads at the bottom of the page, and the gallery template has embedded jquery script.)
I’m sure there is a far more elegant solution than modifying your theme to work with this plugin, but I’ve got 3 days of experience with wordpress right now. So if anyone else is having this problem and just want this thing to work with your chosen theme, that workaround does it! (Enqueue jquery in your header.php)
Digging into this a little more (and learning more about javascript and wordpress in the process), I’m pretty sure the problem is the jquery javascripts not being loaded until after the call to the masonry script embedded in the gallery-masonry-php extension.
So the gallery script works with themes that already contain javascript and were loading some jquery library into their header before it reaches initialize masonry script in the body, but not with themes that have no javascript.
I notice the initialize masonry javascript on gallery-masonry-php is not called with wp_enqueue. Suspecting that may be the problem? (Still learning here…)
Thank you that is really helpful. I know php pretty well, but javascript barely at all.
I turned off the plugins that were causing most of the javascript errors.
However, a javascript error with foogallery still remains:“Uncaught ReferenceError: jQuery is not defined”
Any guidance would be greatly appreciated!
I am also having this problem on my page:
http://zdemo.comixhome.com/portfolio/I have it with both the masonry and the justified templates.
It occurs with both the theme I have up right now (Duster) and Twenty Eleven. (But not some other themes.) I have confirmed these themes do call wp_footer.