redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Redux in a theme and in a plugin at the same time

Open genethic opened this issue 12 years ago • 1 comments

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?

genethic avatar Feb 13 '14 15:02 genethic

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. ;)

dovy avatar Feb 13 '14 21:02 dovy