Code Monkey home page Code Monkey logo

oxygenthemeenabler's Introduction

Oxygen Theme Enabler

A WordPress plugin that makes it possible to use the active WordPress theme when Oxygen is active.

This plugin adds a new setting page which can be accessed at Oxygen > Theme Enabler.

Here, you can select whether you want to use the theme or Oxygen for most of your site's pages.

Screenshot

You will need to edit the following line in plugin.php file of the plugin and enter your if conditional:

return is_page( 'contact' ); // enter your if condition here. Reference: https://codex.wordpress.org/Conditional_Tags

Replace is_page( 'contact' ) with the conditional depending on where you want to use the theme/Oxygen.

A few valid examples:

is_page( array( 42, 'about-me', 'About Me And Joe' ) )

is_front_page()

is_woocommerce()

Reference

Installation

  1. Ensure that Oxygen is installed and active.
  2. Click on the Download ZIP button at the right to download the plugin.
  3. Go to Plugins > Add New in your WordPress admin. Click on Upload Plugin and browse for the zip file.
  4. Activate the plugin.

Changelog

1.0.2 - November 15, 2019

  • pages set to use the theme will now work.
  • pages set to use Oxygen will not load theme assets anymore.
  • URLs having ct_builder=true i.e., Oxygen editor have been excluded from the plugin so they load.

1.0.1 - November 07, 2019

  • Simplified the return statement

1.0.0 - August 06, 2018

  • Initial Release

Others

Donate link: https://www.paypal.me/sridharkatakam

oxygenthemeenabler's People

Contributors

srikat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.