Shortcodes and AJAX content

Some themes and plugins may load your content using AJAX requests. In this case shortcodes may not work properly, because wp_head and wp_footer hooks will not be triggered after content load. This means that necessary shortcode assets (javascripts and stylesheets) will not be loaded.

You can force loading of necessary assets on every page of website. Put the following code into functions.php file of your active theme:

function PREFIX_su_force_assets() {

	// Force loading of Stylesheets (unwanted assets could be omitted)
	su_query_asset( 'css', 'su-content-shortcodes' );
	su_query_asset( 'css', 'su-box-shortcodes' );
	su_query_asset( 'css', 'su-media-shortcodes' );
	su_query_asset( 'css', 'su-other-shortcodes' );
	su_query_asset( 'css', 'su-galleries-shortcodes' );
	su_query_asset( 'css', 'su-players-shortcodes' );

	// Force loading of JavaScripts (unwanted assets could be omitted)
	su_query_asset( 'js', 'su-galleries-shortcodes' );
	su_query_asset( 'js', 'su-players-shortcodes' );
	su_query_asset( 'js', 'su-other-shortcodes' );

}

add_action( 'wp_head', 'PREFIX_su_force_assets' );

Look for complete list of available assets here: wp-content/plugins/shortcodes-ultimate/inc/core/assets.php:105.