Skip to content

Instantly share code, notes, and snippets.

@Yeadh
Created April 19, 2017 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yeadh/147fc714ff1c56fd48ea7fe826113a60 to your computer and use it in GitHub Desktop.
Save Yeadh/147fc714ff1c56fd48ea7fe826113a60 to your computer and use it in GitHub Desktop.
Adding a Customize Section on WordPress
$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