Your use of add_control
is incorrect. More specifically, you are not telling what type of control you want to add. Refer to the codex link to see which types can be generated automatically. I’ve given an example with a text field below.
$wp_customize->add_control('cta_heading', array(
'label' => __('CTA Heading','starter'),
'section' => 'home_call_to_action_section',
'setting'=>'home_call_to_action_setting_section',
'type'=>'text',
));
Beware that if you want more complex controls, such as colours, you need to explicitly create the control object. An example is given in the codex link as well.
Related Posts:
- How To extend WP_Customize_Control
- Theme customizer – settings order
- Custom Image section in Customizer
- Get entered value of customiser field for live preview
- Is it possible ( or advisable) to allow open access to the new theme customizer for potential clients?
- Add a dropdown to theme customizer
- Theme Customizer : how to create multiple-level panel
- Customizer Active Callback not working
- Can I create customizer setting that can handle plugin shortcode?
- Editing the custom background CSS
- How to execute conditional script when on new customize.php (Theme Customize) screen
- Is the theme customizer slowing down my site?
- Trigger Customizer saving process with Javascript only
- Adding customizer styles with wp_add_inline_style
- WordPress Customize — Move “menus” options / field to another section
- Is it possible to display the admin bar while in the Theme Customizer?
- How do I get a parent theme modification from a child theme?
- Changing the entire control choices using wp.customize with JavaScript
- How to Change CSS Variable value in Theme Customizer Live Preview
- How to remove menus section from WordPress theme customizer
- Checking if there is an Image inserted – if not don’t display anything
- “Display Site Title and Tagline” checkbox not working?
- How to set page template on front using starter content?
- WordPress Customizer Control with React
- Modify the Additional CSS section (adding a disclaimer)
- How to change the customizer´s sidebar width?
- wordpress custom theme import and export options for sample data [closed]
- How to hook CSS file according to theme selection in the customizer section
- How i can get widgets areas working in customizer?
- Change setting name in Customizer and keep the data
- after_setup_theme, Global Variable and Theme Customizer
- How to disable automatic colors in the Twenty Twenty theme?
- How can i add edit shortcut icon in wordpress customizer without using selective refresh?
- Add new panel inside parent panel in WP Customize?
- Input ordering in wordpress theme customizer
- Unable to pass variable on theme cusomizer add_settings()
- How to add field customizable by the theme editor to your theme?
- Get a setting value conditionally in the Customizer api
- WP_Customize_Color_Control omitting # symbol
- Theme-wide custom post template
- Edit footer via customizer
- How do i make a custom section’s setting display the default value in Customizer?
- Disabling Customizer Selective Refresh shortcut icons for selected controls
- “Add A Widget” button in the Customizer
- Q: How to pull data from custom table to populate zustomizer setting/control select options
- Dynamically generated wordpress customizer options?
- The ‘default’ attribute from $wp_customize->add_setting() method not in db?
- Override customizer values on a per-menu base
- How to modify default controls in WordPress theme customizer
- How to transfer one domain to another domain without losing theme options (customizer)?
- Why in the static pages of my theme are showing these information?
- Can I make a Customizer dropdown-pages list include private pages?
- How to allow certain PHP functions when using sanitize_callback in the word press customizer
- How to allow users to create their own website within my domain? [closed]
- Doing context-aware previews in the WordPress Customizer
- Alignment Problem [closed]
- Avada Child Theme Development
- Theme logo metadata into template file
- Customizer: get_preview_url() inside customize_save_after hook
- WP Customazation API doesn’t save the default Value
- Twenty Twelve Author not displaying
- Related Post Category Filter
- Let user to upload multiple time
- How to copy page/post from one theme to another?
- How to change listing type permlink?
- Why does wp_customizer default values do not apply when theme is installed for the first time?
- Customizer API Multi Sections in single Panel
- How to dynamically set a background image with the customizer without putting the css as an inline-style
- Default customizer colors aren’t displayed outside of the preview
- WordPress Custom Theme : Theme Builder vs ACF vs Gutenberg
- fetch all post from wp multisite network and sort all the post in descending order on the basis of “Created by ” term
- How Do I Create a WordPress Demo Site with Limited Admin Access
- Fatal error: Class WP_Customize_Image_Control not found
- What is difference between add_theme_support and Theme Customization API?
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- How do I remove header/page-title image in farvis theme? [closed]
- How to show Custom Field Value in Woocommerce Shop Page
- How to show some of category in wordpress
- Text View (Code View) in WordPress Customizer TinyMCE Editor
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- Import settings from another theme
- Nav menus Fast previewing not working with wp_get_nav_menu_items!
- Customizer Image-Picker Preview Not Working
- Correct was to customise theme using get_theme_mod in scripts
- Add multiple sections, settings and controls at once to the Customizer
- How to get url image page the right way?
- Load get_page_templates into select menu
- Missing hashtag with theme customizer header color
- WordPress Customizer Help with FontAwesome Icon
- Customizer_register theme options not saving
- Editable screenshot.png in a custom theme developed
- Using Customizer value in an external PHP file inside a theme
- get_theme_mod not pulling css colors into header using wp_head
- “No Data Received” error in Chrome every time i try to update the theme functions file
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- How do I make it super customisable?
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- My theme is full of error messages in the “Customize” screen, but nowhere else
- WP Customizer get control value on change
- Execute javscript when theme customizer loads (autosave issue)