Worked like a charm, thanks @theluckywp
I ran into the same issue. I’ve narrowed it down to a conflict when moving js scripts to the footer in the functions.php. When I remove the below actions, the below css is dynamically inserted into the source, but when moving scriptts to footer it breaks the Lucky TOC css insertion. This only happens with the latest update.
Page with TOC: https://jurdigstaging.wpengine.com/dui-attorney-marketing/
Script that won’t load with latest update:
https://jurdigstaging.wpengine.com/wp-content/plugins/luckywp-table-of-contents/front/assets/main.min.css
// Move Javascript to Footer
remove_action(‘wp_head’, ‘wp_print_scripts’);
remove_action(‘wp_head’, ‘wp_print_head_scripts’, 9);
remove_action(‘wp_head’, ‘wp_enqueue_scripts’, 1);
add_action(‘wp_footer’, ‘wp_print_scripts’, 5);
add_action(‘wp_footer’, ‘wp_enqueue_scripts’, 5);
add_action(‘wp_footer’, ‘wp_print_head_scripts’, 5);
-
This reply was modified 6 years, 4 months ago by rizzlebizzle.
-
This reply was modified 6 years, 4 months ago by rizzlebizzle.