• Resolved neotrope

    (@neotrope)


    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 πŸ™‚

    • This topic was modified 8 years, 10 months ago by neotrope.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Thank you for contacting us!

    Try using “pdfprnt_frontend” style name in your code instead of “pdfprnt_frontend-css”.

    Please let us know about the result.

    Thread Starter neotrope

    (@neotrope)

    awesome + sauce = U

    thanks so much, that did the trick πŸ™‚

    If we were using this for a purpose generating revenue, I would have gotten the pro version by now. However, since you were kind enough to follow up, I’ll go check out the upgrade, even if we don’t need any ‘pro’ features.

    (Normally for ‘donation ware’ plugins, I usually pump some moola to the devs; in your case you have a pro version, so guess that is best way.)

    THANKS AGAIN!
    This plugin saves the day when we used to have to manually make PDFs of every post, and only small number of people actually needed them. But those folks yelled the most, so we had to include them in some way after discontinuing the manual versions. πŸ™‚

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Thank you for such warm words and your feedback!

    Please let us know if you have additional questions.
    Have a nice day!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove CSS in head of posts, when not using plugin CSS’ is closed to new replies.