• Resolved barraqda

    (@barraqda)


    Hi

    This is great and simple plugin! Congratulation!

    But I suggest to add simply option “Do not attach css”.
    There is now one option “Print Featured Image” and I think there should be second one.

    Why?

    Some people don’t wont to have several external css. Your css is short but it is additional file to load and overwright in my own css.
    Now I have to put som comment in widget logic and remember about this because of updating plugins and overwriting my comment.
    So it will be nice to have option “Do not attach css” or adding css option may by in custom templates for more advanced users.

Viewing 1 replies (of 1 total)
  • Plugin Author David Aguilera

    (@davilera)

    Hi!

    Thank you very much for your kind words and suggestions. If you want to get rid of the CSS file in the frontend it’s actually pretty easy — just use the following snippet:

    function neliofp_remove_style_in_frontend() {
      wp_dequeue_style( 'neliofp_style_css' );
    }//end neliofp_remove_style_in_frontend()
    add_action( 'wp_enqueue_scripts', 'neliofp_remove_style_in_frontend', 99 );
    

    You can paste it in the functions.php file of your theme, or create a custom plugin that contains all your customizations.

Viewing 1 replies (of 1 total)
  • The topic ‘Do not attach css – I wish to have…’ is closed to new replies.