Skip to content

Instantly share code, notes, and snippets.

@yankiara
Last active July 12, 2022 06:26
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yankiara/b598e21f3aede6a0c62db964b082e825 to your computer and use it in GitHub Desktop.
Save yankiara/b598e21f3aede6a0c62db964b082e825 to your computer and use it in GitHub Desktop.
Oxygen Builder dummy theme used to increase plugins compatibility
/**
* Oxy-Dummy activation (thank you Sridhar Katakam)
* Paste this code snippet in your Oxygen's customization plugin
* or copy the file to /wp-content/plugins/customization-plugin/
*/
remove_filter( 'template', 'ct_oxygen_template_name' );
remove_filter( 'template_directory', 'ct_disable_theme_load', 1, 1 );
remove_filter( 'stylesheet_directory', 'ct_disable_theme_load', 1, 1 );
/**
* This EMPTY but required file goes to your oxy-dummy theme folder: /wp-content/themes/oxy-dummy/
*/
/*
Theme Name: Oxy-Dummy
Theme URL: https://pavenum.com
Description: Oxygen Dummy Theme (put this file in your oxy-dummy theme folder: /wp-content/themes/oxy-dummy/)
Author: yankiara
Author URL: https://pavenum.com
Version: 1.0.0
*/
@yankiara
Copy link
Author

Hi, and thx!!!
Are these links permanent?

@KittenCodes
Copy link

Hi, and thx!!!
Are these links permanent?

Yes, they should be!

@yankiara
Copy link
Author

yankiara commented Oct 2, 2020

@KittenCodes, the zip files you posted are not my files!!! DELETED
Please don't hack this thread with your stuff.

@KittenCodes
Copy link

@yankiara

Please don't hack this thread with your stuff.

I apologise, but it's not "my stuff". This was so long ago now that I don't remember exactly why I couldn't use your CSS file, but I ran into some sort of WordPress error with the file header, so I pulled one out of a WordPress theme. The CSS file didn't reference me at all, and no offence was meant. I was just trying to package everything in one place so that it would be easy for a non-coder to use the files.

@yankiara
Copy link
Author

yankiara commented Oct 2, 2020

Well everything works for me with these files.
You included some WP 2019 theme CSS header, which is wrong.
You posted the theme enabler plugin from someone else, which is not very nice because you don't even mention the author, and the plugin is for a very different purpose (it loads the whole activated theme, which is a huge bloat compared to this minimal solution).

No offense taken, but be careful not to interfere and accidentally deceive users.

@sandyhuner
Copy link

sandyhuner commented Jan 7, 2021

Does this still works?
I am looking for a way to be able to override plugin templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment