Skip to content

Instantly share code, notes, and snippets.

@mjesusabarca
Created August 10, 2017 16:20
Show Gist options
  • Select an option

  • Save mjesusabarca/e03d56ee646551dd5548db01dc948c69 to your computer and use it in GitHub Desktop.

Select an option

Save mjesusabarca/e03d56ee646551dd5548db01dc948c69 to your computer and use it in GitHub Desktop.
delete four services Boxes Section
// four services Boxes Section
$wp_customize->add_section('pageboxes_section', array(
'title' => __('Four Page Boxes Section','milestone-lite'),
'description' => __('Select Pages from the dropdown for four services boxes section','milestone-lite'),
'priority' => null
));
$wp_customize->add_setting('pagebox-area1', array(
'default' => '0',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'absint'
));
$wp_customize->add_control( 'pagebox-area1',array('type' => 'dropdown-pages',
'section' => 'pageboxes_section',
));
$wp_customize->add_setting('pagebox-area2', array(
'default' => '0',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'absint'
));
$wp_customize->add_control( 'pagebox-area2',array('type' => 'dropdown-pages',
'section' => 'pageboxes_section',
));
$wp_customize->add_setting('pagebox-area3', array(
'default' => '0',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'absint'
));
$wp_customize->add_control( 'pagebox-area3',array('type' => 'dropdown-pages',
'section' => 'pageboxes_section',
));
$wp_customize->add_setting('pagebox-area4', array(
'default' => '0',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'absint'
));
$wp_customize->add_control( 'pagebox-area4',array('type' => 'dropdown-pages',
'section' => 'pageboxes_section',
));//end four column page boxes
$wp_customize->add_setting('disabled_pgboxes',array(
'default' => true,
'sanitize_callback' => 'milestone_lite_sanitize_checkbox',
'capability' => 'edit_theme_options',
));
$wp_customize->add_control( 'disabled_pgboxes', array(
'settings' => 'disabled_pgboxes',
'section' => 'pageboxes_section',
'label' => __('Uncheck To show This Section','milestone-lite'),
'type' => 'checkbox'
));//show Homepage boxes Section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment