php - How to Initiate Custom Redux Framework Config File -


i'm getting started php , i'm trying use redux framework build theme settings panel.

i've installed plugin on local dev environment, running wp multi-site, , activated demo.

now want copy sample-config.php file , build out own configuration. however, can't seem initialize copied file.

the docs have copy sample config "a new location" , require file so:

require_once (dirname(__file__) . '/sample/sample-config.php'

so made copy , moved root directory of redux plugin so:

/plugins/redux-framework/my-custom-config.php 

i'm not sure i'm supposed add require_once statement. i've read docs sort of glazed on this. tried adding functions.php file, doesn't work.

require_once wp_plugin_dir . '/redux-framework/my-custom-config.php';

can please clarify should place copied sample-config.php file , should place require_once statement?

lead dev @ redux here. support questions our issue tracker quite responsive. may wan try there next time: https://github.com/reduxframework/redux-framework/issues

also if want save time, should use redux builder. give need: http://build.reduxframework.com

are trying load in plugin or theme?

if you're in theme, need run require_once in functions.php file. again, builder spit out you.

if you're running in plugin, want following:

function init_my_custom_redux() {     require_once(dirname(__file__).'/path/to/config.php'); } add_action('plugins_loaded', 'init_my_custom_redux', 30); 

what not load config (within plugin only) before reduxframework plugin.

either way, hope helps. have great day.


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -