How do I include Redux Framework in Theme wordpress?
This code doesn't work:
<?php
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' );
}
?>
Spoiler alert, lead dev at Redux here. You could use the Redux Generator to get an admin folder and bypass some pain.
http://generate.reduxframework.com
After all, it's a free service. :)