Topic: Juicebox doesn't load on all pages [SOLVED]

Hi,

juicebox does not load in all pages of my site. I am using a child theme but I am unable to find where I made an error. I hope you can point me in the right direction.

Juicebox loads on these pages:
home: www.edvervanzijnbed.nl
albumpages like: http://www.edvervanzijnbed.nl/verenigde-staten/#1

But not on the following:
single post: http://www.edvervanzijnbed.nl/centraal- … de-liedje/
search page: http://www.edvervanzijnbed.nl/?s=rusland
some other pages like: http://www.edvervanzijnbed.nl/routewereldreis/

Thanks you,
Edwin

Re: Juicebox doesn't load on all pages [SOLVED]

It looks like the 'juicebox.js' JavaScript file is not being loaded into the <head> section of all your web pages.
WP-Juicebox detects whether or not a Juicebox gallery is present on a page and loads the the 'juicebox.js' file only if necessary.
I'm not sure why this is not working within your own WordPress site (maybe something to do with your gallery shortcodes or the fact that you seem to be embedding galleries into areas such as sidebar widgets) but you can load the 'juicebox.js' file into all your pages by opening the plugin's 'wp-juicebox.php' file in a plain text editor and changing line 30 from:

add_action('the_posts', array(&$this, 'shortcode_check'));

... to:

add_action('wp_enqueue_scripts', array(&$this, 'add_scripts_wp_core'));

Please note that the line number above refers to the current version of WP-Juicebox (v1.5.0) which can be downloaded from the plugin's support page here.

Re: Juicebox doesn't load on all pages [SOLVED]

That was it Steve.

Come to think of it, I think we did this before. Maybe with the new version the wp-juicebox.php was overwritten.

Anyway it works again, thanks a lot.

Edwin

Re: Juicebox doesn't load on all pages [SOLVED]

I thought it sounded vaguely familiar!
I'm glad you've got it working again.
Thank you for letting me know.