{"id":383,"date":"2018-08-05T23:41:21","date_gmt":"2018-08-05T23:41:21","guid":{"rendered":"https:\/\/wpdevdesign.wpengine.com\/?p=383"},"modified":"2020-07-21T09:41:20","modified_gmt":"2020-07-20T23:41:20","slug":"oxygen-theme-enabler-plugin","status":"publish","type":"post","link":"https:\/\/wpdevdesign.com\/oxygen-theme-enabler-plugin\/","title":{"rendered":"Oxygen Theme Enabler plugin"},"content":{"rendered":"\n<p>I have put together a plugin called Oxygen Theme Enabler for users of <a href=\"http:\/\/oxygenbuilder.com\/\">Oxygen<\/a> to enable them to use the active theme on select pages of their WordPress site.<\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"UFMR\"><iframe loading=\"lazy\" title=\"Oxygen Theme Enabler\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/HOyEfgMCYko?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/span>\n<\/div><\/figure>\n\n\n\n<p>The plugin adds a new setting page which can be accessed at Oxygen &gt; Theme Enabler.<\/p>\n\n\n\n<p>Here, you can select whether you want to use the theme or Oxygen for most of your site&#8217;s pages.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/wpdevdesign.com\/wp-content\/uploads\/2018\/08\/oxygen-theme-enabler-settings.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1908\" height=\"512\" src=\"https:\/\/wpdevdesign.com\/wp-content\/uploads\/2018\/08\/oxygen-theme-enabler-settings.png\" alt=\"\" class=\"wp-image-385\" srcset=\"https:\/\/wpdevdesign.com\/wp-content\/uploads\/2018\/08\/oxygen-theme-enabler-settings.png 1908w, https:\/\/wpdevdesign.com\/wp-content\/uploads\/2018\/08\/oxygen-theme-enabler-settings-300x81.png 300w, https:\/\/wpdevdesign.com\/wp-content\/uploads\/2018\/08\/oxygen-theme-enabler-settings-1024x275.png 1024w, https:\/\/wpdevdesign.com\/wp-content\/uploads\/2018\/08\/oxygen-theme-enabler-settings-768x206.png 768w, https:\/\/wpdevdesign.com\/wp-content\/uploads\/2018\/08\/oxygen-theme-enabler-settings-1536x412.png 1536w, https:\/\/wpdevdesign.com\/wp-content\/uploads\/2018\/08\/oxygen-theme-enabler-settings-800x215.png 800w, https:\/\/wpdevdesign.com\/wp-content\/uploads\/2018\/08\/oxygen-theme-enabler-settings-20x5.png 20w\" sizes=\"auto, (max-width: 1908px) 100vw, 1908px\" \/><\/a><\/figure>\n\n\n\n<p>You will need to edit the following line in <code>plugin.php<\/code> file of the plugin and enter your if conditional:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>return is_page( 'contact' ); \/\/ enter your if condition here. Reference: https:\/\/codex.wordpress.org\/Conditional_Tags<\/code><\/pre>\n\n\n\n<p>Replace <code>is_page( 'contact' )<\/code> with the conditional depending on where you want to use the theme\/Oxygen.<\/p>\n\n\n\n<p>A few valid examples:<\/p>\n\n\n\n<p><code>is_page( array( 42, 'about-me', 'About Me And Joe' ) )<\/code><\/p>\n\n\n\n<p><code>is_front_page()<\/code><\/p>\n\n\n\n<p><code>is_woocommerce()<\/code><\/p>\n\n\n\n<p>and more can be seen <a href=\"https:\/\/codex.wordpress.org\/Conditional_Tags\">here<\/a>.<\/p>\n\n\n\n<p>To download and install the plugin, head over to the <a href=\"https:\/\/github.com\/srikat\/oxygenthemeenabler\"><strong>plugin&#8217;s page on Github<\/strong><\/a>.<\/p>\n\n\n\n<p><strong>Warning<\/strong>: The plugin is provided as-is, without any support.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have put together a plugin called Oxygen Theme Enabler for users of Oxygen to enable them to use the active theme on select pages of their WordPress site. The plugin adds a new setting page which can be accessed at Oxygen &gt; Theme Enabler. Here, you can select whether you want to use the &hellip;<\/p>\n","protected":false},"author":1,"featured_media":385,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":0,"_seopress_analysis_target_kw":"","_seopress_news_disabled":"","_seopress_video_disabled":"","_seopress_video":[],"_seopress_pro_schemas_manual":[],"_seopress_pro_rich_snippets_disable_all":"","_seopress_pro_rich_snippets_disable":[],"_seopress_pro_schemas":[],"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"footnotes":""},"categories":[63,64,2],"tags":[107,23],"class_list":["post-383","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-free-content","category-oxygen","category-plugins","tag-oxygen-plugin","tag-screencast"],"acf":[],"featured_image_src":"https:\/\/wpdevdesign.com\/wp-content\/uploads\/2018\/08\/oxygen-theme-enabler-settings.png","featured_image_src_square":"https:\/\/wpdevdesign.com\/wp-content\/uploads\/2018\/08\/oxygen-theme-enabler-settings.png","author_info":{"display_name":"Sridhar Katakam","author_link":"https:\/\/wpdevdesign.com\/author\/srikat\/"},"_links":{"self":[{"href":"https:\/\/wpdevdesign.com\/wp-json\/wp\/v2\/posts\/383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpdevdesign.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpdevdesign.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpdevdesign.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpdevdesign.com\/wp-json\/wp\/v2\/comments?post=383"}],"version-history":[{"count":0,"href":"https:\/\/wpdevdesign.com\/wp-json\/wp\/v2\/posts\/383\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpdevdesign.com\/wp-json\/wp\/v2\/media\/385"}],"wp:attachment":[{"href":"https:\/\/wpdevdesign.com\/wp-json\/wp\/v2\/media?parent=383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpdevdesign.com\/wp-json\/wp\/v2\/categories?post=383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpdevdesign.com\/wp-json\/wp\/v2\/tags?post=383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}