Topic: sidebar widget

Hi,

I've put a gallery in a sidebar widget. It does not show the gallery, unless there is another gallery in the main content.

See for yourself. The widget is called: 'live' meekijken

Homepage (widget does not show the gallery): www.edvervanzijnbed.nl

Page with a gallery in the main content area (widget shows the gallery): www.edvervanzijnbed.nl/brazilie

Edwin

Re: sidebar widget

WP-Juicebox was designed to embed a gallery in a page or post but, unfortunately, not a sidebar widget.
If you want to force the 'juicebox.js' file to be loaded into all your web pages (which is all that should be required for your widget gallery to be displayed), then open the plugins's 'wp-juicebox.php' file in a plain text editor and change line 31 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 numbers above refer to the current version of WP-Juicebox (v1.4.3.0).

Re: sidebar widget

Thanks a lot, that did it.

But I also have the shortcodes everywhere plugin loaded, why didn't that work?

Re: sidebar widget

Thanks a lot, that did it.

That's great!
Thank you for posting back to let me know.

WP-Juicebox searches the current page/post content (not the entire site's content) and if it discovers a Juicebox shortcode, only then will it load the 'juicebox.js' file into the page. This avoids the 'juicebox.js' file from needlessly being loaded into pages where there is no gallery to display. However, it does not check sidebar widget content.