Step-1 : Downloading and preparing for coding
First download and paste the redux folder as ‘lib’ (not mendatory to rename as ‘lib’) inside theme folder.
Then rename sample-config.php (lib/sample/sample-config.php) to config.php. This is because we will work on config.php and keep sample-config.php intact for coding reference.
Now include two files in the theme’s functions.php file,
require_once('lib/ReduxCore/framework.php');
require_once('lib/sample/config.php');
Ok. now we are ready to code on config.php and make our desired option panel.
Step-2 : Making a simple option field for footer text
Delete all Redux::setSection() functions from config.php and paste the following:
Redux::setSection( $opt_name, array( 'title' => 'Footer', 'icon' => 'el el-wrench-alt', 'fields' => array( array( 'title' => 'Footer Text', 'subtitle' => 'Write your own footer', 'type' => 'text', 'id' => 'zboomFooter', 'desc' => 'Your own footer text..', 'default' => 'All right reserved.' ) ) ));
Step-3 : Accessing the value saved by the above text field.
<?php global $zboom_vars; echo $zboom_vars['zboomFooter']; ?>
Leave a Reply