This function is for developers, which use Oxygen and still want to override plugin-files when it reads in their documentation such as
- Create a folder in your theme folder called
search-filter
. - Copy the file
wp-content\plugins\search-filter\templates\results.php
from the templates folder in to the newly created folder in your theme –wp-content\themes\your-theme-name\search-filter\results.php
Where to put such files, if Oxygen is not a theme
and won't uses themes
?
Put the code in the root-file of your custom plugin, like wp-content\plugins\your-custom-plugin\plugin.php
Now you can copy the "child-theme-files" to wp-content\plugins\your-custom-plugin\oxygen-child-theme\<respective-folder>
or change the value in the oxygen_child_theme_dir_name = 'oxygen-child-theme';
variable.
- WordPress 5+
- Oxygen 2+ and Oxygen 3+
and the plugins
- Search & Filter Pro 2+
- Shortcodes Ultimate 5+
- WooCommerce 3+
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
How to override WooCommerce templates using a custom functionality plugin: (without a child theme) - useful for Oxygen too
https://wpdevdesign.com/how-to-override-woocommerce-templates-using-a-custom-functionality-plugin/