Plugin Author
pepe
(@pputzer)
Hi Олег! What theme are you using? As long as the wp_enqueue_scripts action is executed on the frontend, there’s nothing to prevent the script from being enqueued in the code. You might want to check if that happens in a minimal environment (without other plugins) and if not, re-enable them one by one to find the culprit.
Thread Starter
Олег
(@senseinterpreter)
It’s a handmade theme.
Some digging and found i commented out wp_head() (this is the fifth design the university site has in 5 years, direct hardcoded links were the best way to deal with it).
Thanks for the clue.
Thread Starter
Олег
(@senseinterpreter)
Another hint, please
wp_footer() should be printing out the scripts, right? Because even though now i see plugin styles, clean-clipboard.min.js is still not in page source.
Thread Starter
Олег
(@senseinterpreter)
Hot reports, wp_footer() indeed produces A script <script type="text/javascript" src="http://sakhgu.ru/wp-includes/js/wp-embed.min.js?ver=5.2.3"></script>, and only this one.
Will try to pinpoint plugin collisions, if there are any, at a later moment.
Plugin Author
pepe
(@pputzer)
Hi @senseinterpreter! After some digging, it is important that both wp_head() and wp_footer() are called in this order. These are implemented as action hooks, so without wp_head() the scripts are not enqueued and wp_footer() cannot print them.