Hi!
Thanks for your post and sorry for the trouble!
Your observation is correct, TablePress does turn off that option in the Elementor settings as it’s causing quite a bit of problems on many sites. Unfortunately, this Elementor feature treats Shortcodes as “static” which means that Shortcode output is cached. This then results in actions that are run during Shortcode evaluation (like the registration of CSS and JavaScript files) not working.
See https://github.com/TablePress/TablePress/blob/3.2.1/controllers/environment-checks.php#L91-L107 for the relevant code.
To turn this setting back on on your site, you could unhook that filter hook, e.g. by adding this code to the theme’s functions.php file:
add_action( 'plugins_loaded', 'tablepress_unhook_elementor_element_cache_removal' );
function tablepress_unhook_elementor_element_cache_removal() {
remove_filter( 'pre_option_elementor_experiment-e_element_cache', 'tablepress_turn_off_elementor_element_caching', 10, 3 );
}
It is then possible that you might be seeing problems with [table] Shortcodes in Elementor pages, so please check that carefully (in particular the cached view, i.e. when you are logged-out of WordPress). One way to also mitigate that should be to use the “TablePress Table” widget in Elementor, instead of Shortcodes.
Regards,
Tobias
Hi Tobias, thanks for letting me know, I’ll keep it like this.
Thank you very much!
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress in the plugin directory. Thanks!