I'm just getting started with PHP and I'm trying to use the Redux Framework to build a theme settings panel.
I've successfully installed the plugin on my local dev environment, running WP Multi-site, and activated the demo.
Now I want to copy the sample-config.php file and build out my own configuration. However, I can't seem to initialize the copied file.
The docs say that all I have to do is copy the sample config to a "a new location" and then require that file like so:
require_once (dirname(__FILE__) . '/sample/sample-config.php'
So I made a copy and moved it up to the root directory of the Redux Plugin like so:
/plugins/redux-framework/my-custom-config.php
I'm not sure where I'm supposed to add the require_once statement
. I've read the docs but they sort of glazed over this. I tried adding it to my functions.php
file, that doesn't work.
require_once WP_PLUGIN_DIR . '/redux-framework/my-custom-config.php';
Can someone please clarify where I should place the copied sample-config.php
file and where I should place the require_once
statement?