Keeping cloudinary script on the head
-
I’m trying to use the scripts_to_footer plugin to move scripts to the bottom of pages. This breaks Cloudinary since it expects the script to be in the head.
Normally I would run something like this to exclude the script from head
add_filter( 'stf_exclude_scripts', 'stf_custom_header_scripts', 10, 1 ); function stf_custom_header_scripts( $scripts ) { $scripts[] = 'backbone'; // replace 'backbone' with the script slug return $scripts; }
What slug would I use to keep the script in the head? Is there an alternative to use scripts _to_footer?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Keeping cloudinary script on the head’ is closed to new replies.