Patrick
Forum Replies Created
-
Hey @jeremyfelt,
We confirmed the behavior as described, and we’re going to have this fixed in the next releases.
In the meantime, you can adjust this by adding the following snippet to ensure that the loading of the Sugar Calendar Blocks assets only happens when needed.
if ( ! function_exists( 'sc_separate_core_block_assets' ) ) {
function sc_separate_core_block_assets() {
return false;
}
add_filter( 'should_load_separate_core_block_assets', 'sc_separate_core_block_assets', 100 );
}In case it helps, here’s a tutorial with the most common ways to add custom code like this: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/.
For the most beginner-friendly option in the guide above, I’d recommend using the WPCode plugin: http://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/. This will protect your code from updates and keep it easy to manage right within your WordPress admin area.
Thanks once again and have a great one!
- This reply was modified 1 year, 11 months ago by Patrick.
Hey @jeremyfelt, thanks for the feedback on the implementation of
should_load_separate_core_block_assetsin the latest version. We are looking into this and will get back to you with an update.