Remove plugin's CSS file
-
First of all, thanks for this plugin! I love how simple and lightweight this is.
I would like to make it even more lightweight by removing the plugin’s CSS and using my theme’s CSS instead.
How do I remove Simple Colorbox’s CSS file? I am using Theme1 (by default) and noticed that it’s being called in the plugin’s index.php via this code:
public function __construct() { // Add action hooks add_action( 'wp_enqueue_scripts', array( $this, 'external_css' ) ); add_action( 'wp_enqueue_scripts', array( $this, 'external_scripts' ) ); add_action( 'wp_head', array( $this, 'simplecolorbox_ad' ) ); add_action( 'wp_head', array( $this, 'inline_scripts' ) ); }
Commenting out the first add_action accomplishes exactly what I want. However, I would rather not hack the plugin code itself.
Any way to do this?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Remove plugin's CSS file’ is closed to new replies.