How to enable osCitas Accordion Extension For Redux Framework in Theme?
First of all thanks for the purchase!!!
Here are the instruction to enable the osCitas Accordion Extension For Redux Framework in theme
- Purchase and Download the plugin from here osCitas Accordion Extension For Redux Framework.
- Extract the downloaded files.
- Copy the plugin folder.
- Paste into the <your-theme-path>/admin/redux-extensions/
- Now add the following code to functions.php file in your theme
$redux_opt_name = '
'; if(!function_exists('redux_register_custom_extension_loader')) : function redux_register_custom_extension_loader($ReduxFramework) { echo $path = dirname( __FILE__ ) . '/admin/redux-extensions/'; $folders = scandir( $path, 1 ); foreach ( $folders as $folder ) { if ( $folder === '.' or $folder === '..' or ! is_dir( $path . $folder ) ) { continue; } $extension_class = 'ReduxFramework_Extension_' . $folder; if ( ! class_exists( $extension_class ) ) { // In case you wanted override your override, hah. $class_file = $path . $folder . '/extension_' . $folder . '.php'; $class_file = apply_filters( 'redux/extension/' . $ReduxFramework->args['opt_name'] . '/' . $folder, $class_file ); if ( $class_file ) { require_once( $class_file ); } } if ( ! isset( $ReduxFramework->extensions[ $folder ] ) ) { $ReduxFramework->extensions[ $folder ] = new $extension_class( $ReduxFramework ); } } } // Modify {$redux_opt_name} to match your opt_name add_action("redux/extensions/{$redux_opt_name}/before", 'redux_register_custom_extension_loader', 0); endif; - Now extension is active, and to group the options you have to add the following code to your options file
// Starting tag of accordion group array( 'id' => '
-start', 'type' => 'osc_accordion', // field type 'title' => ' ', // here you can set the title for accordion 'subtitle' => '', 'position' => 'start', // to start accordion 'open'=>true, // set this true in case you want to open it by default ), : : // here you can add the option you want to group : // Closing tag of the accordion group array( 'id' => ' -end', 'type' => 'osc_accordion', // field type 'position' => 'end', // to close the accordion ),
4 Comments on “How to enable osCitas Accordion Extension For Redux Framework in Theme?”
Leave a Reply
You must be logged in to post a comment.
sefavrom
February 12, 2016 at 9:06 amHi! thanks for the page.
I put the code on the functions.php but I got 3 syntax error on the lines with $ReduxFramework->args
What to do? Thanks
sefavrom
February 12, 2016 at 9:06 amdone 🙂
sefavrom
February 12, 2016 at 9:16 amHi! still not working … maybe I’m doing something wrong. Help Me please 🙂
osCitas Themes
February 12, 2016 at 9:47 amHi,
Please send us the login details of your site, we will check that. Use our Contact Us page to send details. Don’t paste details here.
Thanks