{"id":45653,"date":"2022-06-11T19:55:34","date_gmt":"2022-06-11T19:55:34","guid":{"rendered":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/?p=45653"},"modified":"2022-06-12T06:33:03","modified_gmt":"2022-06-12T06:33:03","slug":"hide-oxygen-composite-elements","status":"publish","type":"post","link":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/hide-oxygen-composite-elements\/","title":{"rendered":"Hide Oxygen Composite Elements"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">if you do not use it. Keep add elements sidebar clean. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"450\" src=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-content\/uploads\/2022\/06\/composite-elemenents.jpg\" alt=\"\" class=\"wp-image-45654\" srcset=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-content\/uploads\/2022\/06\/composite-elemenents.jpg 800w, https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-content\/uploads\/2022\/06\/composite-elemenents-300x169.jpg 300w, https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-content\/uploads\/2022\/06\/composite-elemenents-768x432.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption>Left Before | Right After<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Solution to hide<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">&lt;?php\n\n    function hide_oxy_composite_elemenets(){\n    if (isset ($_GET['ct_builder']) &amp;&amp; 'true' === $_GET['ct_builder']) {\n        echo '\n            &lt;style&gt;\n                #oxygen-add-sidebar .oxygen-add-composite-element {\n                    display: none;\n                }\n            &lt;\/style&gt;\n            ';\n        }\n    }\n    add_action('wp_enqueue_scripts', 'hide_oxy_composite_elemenets');\n\n?&gt;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"397\" src=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-11-at-21.53.04-1024x397.png\" alt=\"\" class=\"wp-image-45655\" srcset=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-11-at-21.53.04-1024x397.png 1024w, https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-11-at-21.53.04-300x116.png 300w, https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-11-at-21.53.04-768x297.png 768w, https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-11-at-21.53.04-1536x595.png 1536w, https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-11-at-21.53.04-2048x793.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"has-text-align-center wp-block-heading\">If you are using Scripts Organizer download code snippet<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button aligncenter\"><a class=\"wp-block-button__link\" href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-content\/uploads\/2022\/06\/Hide-Oxy-Composite-Elemenets.json\" target=\"_blank\" rel=\"noreferrer noopener\">Downlaod SCORG Code Snippet<\/a><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Solution to Disabled<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">&lt;?php\n\n    remove_action('init', 'run_oxygen_composite_elements');\n\n?><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks to <a href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/oxygen4fun.supadezign.com\/\" data-type=\"URL\" data-id=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/oxygen4fun.supadezign.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Suppa Mike<\/a> for providing second solution. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>if you do not use it. Keep add elements sidebar clean. Solution to hide If you are using Scripts Organizer download code snippet Solution to Disabled Thanks to Suppa Mike for providing second solution.<\/p>\n","protected":false},"author":1,"featured_media":45657,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Hide Oxygen Composite Elements - Code DPlugins","description":"if you do not use it. Keep add elements sidebar clean. Solution to hide If you are using Scripts Organizer download code snippet Solution to Disabled Thanks to"},"_slim_seo_primary_term_category":0,"_slim_seo_primary_term_post_tag":0,"footnotes":""},"categories":[7],"tags":[75],"dpc_library":[],"class_list":["post-45653","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oxygen","tag-composite-elemenets"],"_links":{"self":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts\/45653","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=45653"}],"version-history":[{"count":0,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts\/45653\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/media\/45657"}],"wp:attachment":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/media?parent=45653"}],"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=45653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/tags?post=45653"},{"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=45653"}],"curies":[{"name":"wp","href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/api.w.org\/{rel}","templated":true}]}}