How to include Redux Framework in Theme

Hussien Elmaydome picture Hussien Elmaydome · Mar 7, 2014 · Viewed 9.4k times · Source

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' );
  }
?>

Answer

Dovy picture Dovy · Apr 20, 2014

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