{"id":45787,"date":"2022-07-19T15:46:34","date_gmt":"2022-07-19T15:46:34","guid":{"rendered":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/?p=45787"},"modified":"2022-07-19T15:46:34","modified_gmt":"2022-07-19T15:46:34","slug":"dequeue-oxygen-css","status":"publish","type":"post","link":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/dequeue-oxygen-css\/","title":{"rendered":"Dequeue Oxygen CSS"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you are importing frameworks such as <a rel=\"noreferrer noopener\" href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/getbootstrap.com\/\" data-type=\"URL\" data-id=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/getbootstrap.com\/\" target=\"_blank\">Bootstrap<\/a>, <a rel=\"noreferrer noopener\" href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/tailwindcss.com\/\" data-type=\"URL\" data-id=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/tailwindcss.com\/\" target=\"_blank\">Tailwind CSS<\/a>, <a rel=\"noreferrer noopener\" href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/bulma.io\/\" data-type=\"URL\" data-id=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/bulma.io\/\" target=\"_blank\">Bulma<\/a>, <a rel=\"noreferrer noopener\" href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/materializecss.com\/\" data-type=\"URL\" data-id=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/materializecss.com\/\" target=\"_blank\">Materialize<\/a> &#8230; you may not want that Oxygen Builder defaults overwrite some of frameworks styles. Thats why we offering solution do remove Oxygen CSS. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Keep in mind that if you disable Oxygen CSS non of Oxygen CSS&#8217;s will be added on the website:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Oxygen Classes<\/li><li>Oxygen IDs <\/li><li>Oxygen Stylesheets<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If you need to make further modifications we suggest using<strong><a href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/dplugins.com\/products\/scripts-organizer\/\" data-type=\"URL\" data-id=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/dplugins.com\/products\/scripts-organizer\/\" target=\"_blank\" rel=\"noreferrer noopener\"> Scripts Organizer <\/a><\/strong>for best experience.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">&lt;?php\n\nadd_action( 'wp_enqueue_scripts', 'remove_oxygen_stylesheet', 100000000 );\n\nfunction remove_oxygen_stylesheet() {\n    \n    wp_dequeue_style('oxygen-universal-styles');\n    \n    add_filter('style_loader_tag', function ($tag, $handle) {\n    if ($handle == 'oxygen-universal-styles' || $handle == 'oxygen-styles') {\n        return '';\n    }\n\n    return $tag;\n    }, 10, 2);\n\n\n    wp_dequeue_style('oxygen');\n    remove_action('wp_head', 'ct_footer_styles_hook');\n\n    add_filter('style_loader_tag', function ($tag, $handle) {\n        global $oxygen_vsb_css_files_to_load;\n\n        if (substr($handle, 0, 13) !== 'oxygen-cache-') {\n            return $tag;\n        }\n\n        $post_id = intval(str_replace('oxygen-cache-', '', $handle));\n\n        if (!in_array($post_id, $oxygen_vsb_css_files_to_load)) {\n            return $tag;\n        }\n\n        if ($handle == 'oxygen-cache-' . $post_id) {\n            return '';\n        }\n\n        return $tag;\n    }, 10, 2);\n\n}\n\n?><\/code><\/pre>\n\n\n","protected":false},"excerpt":{"rendered":"<p>If you are importing frameworks such as Bootstrap, Tailwind CSS, Bulma, Materialize &#8230; you may not want that Oxygen Builder defaults overwrite some of frameworks styles. Thats why we offering solution do remove Oxygen CSS. Keep in mind that if you disable Oxygen CSS non of Oxygen CSS&#8217;s will be added on the website: Oxygen [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":46565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Dequeue Oxygen CSS - Code DPlugins","description":"If you are importing frameworks such as Bootstrap , Tailwind CSS , Bulma , Materialize ... you may not want that Oxygen Builder defaults overwrite some of frame"},"_slim_seo_primary_term_category":0,"_slim_seo_primary_term_post_tag":0,"footnotes":""},"categories":[7],"tags":[79],"dpc_library":[],"class_list":["post-45787","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oxygen","tag-css"],"_links":{"self":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts\/45787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/comments?post=45787"}],"version-history":[{"count":0,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts\/45787\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/media\/46565"}],"wp:attachment":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/media?parent=45787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/categories?post=45787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/tags?post=45787"},{"taxonomy":"dpc_library","embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/dpc_library?post=45787"}],"curies":[{"name":"wp","href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/api.w.org\/{rel}","templated":true}]}}