Remove CSS in head of posts, when not using plugin CSS
-
Hi folks
thanks for continuing the development of the plugin. πone minor issue, with ‘no buttons’ selected in the panel; there is no provision to unset the CSS being added to head of every post. Problem for us as we’ve moved our CSS inline for critical CSS and any style sheets to footer.
I am trying to quash this since not needed (we make a button of our own using fontawesome and bootstrap buttons):
<link rel='stylesheet' id='pdfprnt_frontend-css' href='https://www.OURSITE.hhh/plugins/pdf-print/css/frontend.css' type='text/css' media='all' />with latest iteration, this doesn’t seem to work
function dequeue_my_css() { wp_dequeue_style('pdfprnt_frontend-css'); wp_deregister_style('pdfprnt_frontend-css'); } add_action('wp_enqueue_scripts','dequeue_my_css',201);Any suggestion?
Thank you π
The topic ‘Remove CSS in head of posts, when not using plugin CSS’ is closed to new replies.