You want to add_setting and add_control to your panel to work.
For example:
function panel($wp_customize){
$wp_customize->add_panel('some_panel',array(
'title'=>'Panel1',
'description'=> 'This is panel Description',
'priority'=> 10,
));
$wp_customize->add_section('section',array(
'title'=>'section',
'priority'=>10,
'panel'=>'some_panel',
));
$wp_customize->add_setting('setting_demo',array(
'defaule'=>'a',
));
$wp_customize->add_control('contrl_demo',array(
'label'=>'Text',
'type'=>'text',
'section'=>'section',
'settings'=>'setting_demo',
));} add_action('customize_register','panel');
Related Posts:
- Using classes instead of global functions in functions.php
- What are the ADVANTAGES of ORIGINAL wordpress template structure?
- Change admin bar to default:off
- How to change admin bar color scheme in MP6 / WP 3.8 front end?
- Template for individual post designs
- When to use esc_url, esc_html, esc_attr, and friends?
- Best practices – Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
- How can you develop on a live WordPress installation that is using W3 Total Cache? [closed]
- How to disable 3.1 “Admin Bar” via script for the admin user?
- What is the best practice for customizing a plugin’s JavaScript/jQuery?
- Front End Post Submit Form
- Feature Survey – What would you want in a resume theme?
- How the WordPress sidebar works
- Should we localize custom-made themes / plugins?
- Change loop order via form or link (jquery, not URL)
- Extend walker – navigation, adding data attribute to a tag
- Set front page as static page [closed]
- How to programmatically bring back “excerpts” field in post editor in WP 3.1+
- How can i customize the comment list
- How to add custom template tag in wordpress theme?
- How should I store global information such as a phone number so that it is editable through the CMS?
- When developing a distributable Theme, does it HAVE to be “inheritable”?
- wp_head() not inserting the default stylesheet style.css
- Upgrading a custom theme through the Dashboard
- First completely customized theme, where should I start?
- Theme Customizer not loading
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- Modify Javascript Configuration Options for Theme Customizer Colour Picker
- Best practices: Custom theme sidebar menu – hardcode or widget?
- Modify the Additional CSS section (adding a disclaimer)
- Version control for both Vagrant config and themes being developed [closed]
- How to correctly add JQuery in a WP theme?
- What is the best way to handle multiple calls to get_template_directory_uri() and similar functions?
- Best way to start becoming a wordpress developer
- Removing non native customizer settings from a child theme
- How to reorganize the items returned by wp_list_comments()?
- which is the best way to customize nav-menu-template.php?
- Where should I update_options in a theme?
- WP 3.1 upgrade breaks AutoFocus+ theme
- Displaying recent post excerpts on static front page
- Customizer: Unique identifier that distinguishes which image upload control is uploading an image
- How to make theme elements customizable in wordpress?
- How do I Add images uploaded in the post to a default custom field
- How to add a button which saves the post then executes a function
- Limitations when modifying wp_title with a filter
- How to edit theme functions file to modify pagination?
- JavaScript stops working on selectively refreshed sections one inside the other
- “Add A Widget” button in the Customizer
- Customizer: save setting/control content to post/page
- Q: How to pull data from custom table to populate zustomizer setting/control select options
- Move default page templates to sub directory
- Is it possible to visually group items on the theme customizer?
- Custom Blocks as part of a theme
- Customize how a WordPress theme looks like in the Theme Selector
- WooCommerce: multiple input field for multiple product variations
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Integrate WooCommerce theme with a WordPress theme [closed]
- Widget Option is Missing
- How do you use WordPress for a website that’s not in a blog format?
- Default Text not showing from customizer
- Child Theme header1.php file not overwriting parent theme’s header1.php file
- How to have content scroll over background
- WordPress Template Part in iFrame
- Replace site title with logo when logo is uploaded in customizer using
- Is there a WordPress boolean for “theme_customizer_active()”?
- How to clean up the theme for production?
- searchform.php doesn’t work properly
- Customizer: get_preview_url() inside customize_save_after hook
- How to add custom meta box when you have a custom page template file
- add shortcode support in customizer
- Right procedure when you develop a WP Website for a client
- Woocommerce Product attribute not imported with wordpress Importer [closed]
- New to WordPress – Read the Codex, Other Docs; Still Confused
- How to add custom page elements to the WYSIWYG editor?
- Update Specific Key Value in Complex `wp_options` object
- Can’t change theme name
- Remove/Hide a Widget on a Custom Template
- How to custom category template based on category?
- How to use multiple check-box values to work in a function and insert values in database
- how to edit woocommerce checkout page
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- WordPress menu walker – Get parent item text inside end_lvl function
- How to dowload and edit content of a website
- HTML TO WP Theme : Submenu goes down wp_nav_menu
- Any way to permanently translate themes?
- How to share posts (and plugins) between existing site and new, separate dev/test installation?
- Best strategy for providing theme options using customizer
- Customizer API way function is_customize_preview() works only in main page?
- Support Multiple featured images
- WordPress 3.5 + Foundation 5 not working on IE9
- How Does One Create a Global Variable Repository
- What hook to use for loading a custom class extension during Theme initialization?
- trying to figure out how to use more that one image upload in the same section in theme customizer
- How to convert that page to a wordpress template? [closed]
- Not Found when using activity stream as front page with BuddyPress
- How do I change the tagline input to textarea?
- WordPress theme Modifications not showing up on live server
- Permalinks problem with custom theme
- How customizable is a self-hosted WordPress blog compared to a Blogger blog?
- How can i move my product name & price from below thumbnail to be the rollover content in Avada & Woocommerce?