codepress / column-shortcodes

Column Shortcodes for WordPress
https://wordpress.org/plugins/column-shortcodes/
15 stars 17 forks source link

Just a small request #6

Closed dantahoua closed 10 years ago

dantahoua commented 10 years ago

Hello! Perfect small pluguin! Maybe just add the possibility to check somewhere that we do not want the Css to be loaded in the front side... I'm very picky with my Css and I try to have the less Http request, so I would like to be able to deactivvate your Css. ( I can do it in the code, but as soon as you'll update the plugin, my mod will go south! ). Thanks. :)

tobiasschutter commented 10 years ago

Hi Vincent,

You could just dequeue the column-shortcode stylesheet.

http://codex.wordpress.org/Function_Reference/wp_dequeue_style

dantahoua commented 10 years ago

I tried with "wp_dequeue_style( 'cpsh-shortcodes' );" but the css is tyle loaded...

anoriell commented 10 years ago

Try: add_action( 'wp_print_styles', 'my_deregister_styles', 100 ); function my_deregister_styles() { wp_deregister_style( 'cpsh-shortcodes' ); } It worked for me :)