Redux in a theme and in a plugin at the same time
Hi! I use the redux framework in my theme and I have not problems. But now i want to use in a plugin, in the same wordpress install and it get me an error. The plugin options overlap the theme options, and i cant acces to network admin in multisite.
I have this code, in the functions and in plugin index:
if ( !class_exists( 'ReduxFramework' ) && file_exists( dirname( FILE ) . '/ReduxFramework/ReduxCore/framework.php' ) ) { require_once( dirname( FILE ) . '/ReduxFramework/ReduxCore/framework.php' ); } if ( !isset( $redux_demo ) && file_exists( dirname( FILE ) . '/ReduxFramework/sample/sample-config.php' ) ) { require_once( dirname( FILE ) . '/ReduxFramework/sample/sample-config.php' ); }
What am I doing wrong?
I was doing something wrong! I changed the sample config and it's fixed now. There were issues with it. The issues were on your plugin side. Give it a try now.
You know, you could also use hooks and just update your theme's option panel from the plugin. ;)