Created
April 19, 2017 05:33
-
-
Save Yeadh/147fc714ff1c56fd48ea7fe826113a60 to your computer and use it in GitHub Desktop.
Adding a Customize Section on WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$options[] = array( | |
'name' => 'prebook_blog', | |
'title' => 'Blog Settings', | |
'settings' => array( | |
// codestar image select | |
array( | |
'name' => 'prebook_blog_title', | |
'control' => array( | |
'label' => 'Blog Title:', | |
'type' => 'text', | |
), | |
'default' => 'Wellcome to our prebook landig page' | |
), | |
// codestar image select | |
array( | |
'name' => 'prebook_header_image', | |
'control' => array( | |
'label' => 'Header Image:', | |
'type' => 'image', | |
), | |
), | |
// codestar image select | |
array( | |
'name' => 'prebook_sidebar', | |
'control' => array( | |
'type' => 'cs_field', | |
'options' => array( | |
'type' => 'radio', | |
'title' => 'Sidebar Postion', | |
'default' => 'right', | |
'options' => array( | |
'left' => 'Left Sidebar', | |
'right' => 'Right Sidebar', | |
'fullwidth' => 'Full Width', | |
), | |
), | |
), | |
), | |
)//settings | |
);//blog sections |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment