{"id":3550045,"date":"2013-03-11T17:01:59","date_gmt":"2013-03-11T17:01:59","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/remove-plugins-css-file\/"},"modified":"2016-08-20T22:40:57","modified_gmt":"2016-08-20T22:40:57","slug":"remove-plugins-css-file","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/remove-plugins-css-file\/","title":{"rendered":"Remove plugin&#039;s CSS file"},"content":{"rendered":"<p>First of all, thanks for this plugin! I love how simple and lightweight this is. <\/p>\n<p>I would like to make it even more lightweight by removing the plugin&#8217;s CSS and using my theme&#8217;s CSS instead. <\/p>\n<p>How do I remove Simple Colorbox&#8217;s CSS file? I am using Theme1 (by default) and noticed that it&#8217;s being called in the plugin&#8217;s index.php via this code:<\/p>\n<pre><code>public function __construct() {\n\t\/\/ Add action hooks\n\tadd_action( &#039;wp_enqueue_scripts&#039;, array( $this, &#039;external_css&#039; ) );\n\tadd_action( &#039;wp_enqueue_scripts&#039;, array( $this, &#039;external_scripts&#039; ) );\n\tadd_action( &#039;wp_head&#039;,            array( $this, &#039;simplecolorbox_ad&#039; ) );\n\tadd_action( &#039;wp_head&#039;,            array( $this, &#039;inline_scripts&#039; ) );\n}<\/code><\/pre>\n<p>Commenting out the first add_action accomplishes exactly what I want. However, I would rather not hack the plugin code itself. <\/p>\n<p>Any way to do this?<\/p>\n<p>https:\/\/wordpress.org\/extend\/plugins\/simple-colorbox\/<\/p>\n","protected":false},"template":"","class_list":["post-3550045","topic","type-topic","status-closed","hentry","topic-tag-css"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3550045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3550045\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=3550045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}