Thanks to @chip_bennett to point it out!
I registered the settings using settings api and I was trying to add the settings on customize api by the type of theme_mod
that’s why it was showing the error. After changing the 'type' => 'theme_mod'
to 'type' => 'option'
, it worked 🙂
Related Posts:
- How do I remove a pre-existing customizer setting?
- Custom Image section in Customizer
- Get entered value of customiser field for live preview
- How to remove the Theme Customization Button from the dashboard and themes options page?
- Allow Shortcode in Theme Customizer
- Theme Customizer – Nested Sections?
- Trigger Customizer saving process with Javascript only
- Adding customizer styles with wp_add_inline_style
- WordPress Customizer Typography: How to load just the unique Google Fonts?
- Can we add more than one control under a setting in WP theme customizer?
- Widgets panel not displaying in the Theme Customizer
- 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?
- How to Change CSS Variable value in Theme Customizer Live Preview
- How to remove menus section from WordPress theme customizer
- Get background color for Live Preview with Theme Customization API?
- Checking if there is an Image inserted – if not don’t display anything
- Default header image does not display
- WordPress Customizer Control with React
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- Modify Javascript Configuration Options for Theme Customizer Colour Picker
- Modify the Additional CSS section (adding a disclaimer)
- How to change the customizer´s sidebar width?
- Theme Customizer – Choose where widget area appears, to let users organise widgets
- 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?
- How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?
- Custom Script Section Only Echoes Text
- WordPress not registering Theme Customization Section
- WP Customize refresh problem
- Input ordering in wordpress theme customizer
- How to add field customizable by the theme editor to your theme?
- How to add new args data in $wp_customize->add_setting?
- Hide header texts (Title & Tagline) in custom-header.php
- get_option in header.php not returning value from customizer
- Internal error 500 accessing Theme > Customize
- Customizer: Unique identifier that distinguishes which image upload control is uploading an image
- Using an if statement in the theme customizer page
- Edit footer via customizer
- How do i make a custom section’s setting display the default value in Customizer?
- How to add styles set by user in the customizer
- JavaScript stops working on selectively refreshed sections one inside the other
- Folder name for a pro version of a WordPress.org theme?
- Display theme layouts [closed]
- “Add A Widget” button in the Customizer
- Can I add multiple arrays within add_theme_support( ‘colors’ )?
- Customizer: save setting/control content to post/page
- Q: How to pull data from custom table to populate zustomizer setting/control select options
- Using WordPress’ Theme Customizer to select page templates that update layout in the preview
- Is accessing theme and using customizer GPL distribution?
- The ‘default’ attribute from $wp_customize->add_setting() method not in db?
- How to modify default controls in WordPress theme customizer
- How to enqueue javascript for WP Customize options sidebar?
- Is it possible to visually group items on the theme customizer?
- Theme Customizer not loading JS for live preview
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Change WordPress header color using customizer
- Default Text not showing from customizer
- Is there any way to register custom background images like header images?
- Why in the static pages of my theme are showing these information?
- Is there a WordPress boolean for “theme_customizer_active()”?
- Can I make a Customizer dropdown-pages list include private pages?
- Customizer Color Control Not Working
- How to set Post meta-box defaults based on the choices made by user in Customizer?
- Questions from a new WP Dev [closed]
- Adding a new setting using Kirki or WP customizer with an if statement
- Create something that can be added or removed in Customizer
- add shortcode support in customizer
- Customize Option Framework
- How to set a custom URL for the iframe in the customize page
- How to add wysiwyg editor in customize screen using customize_register
- How to register dynamic settings in WordPress Customizer?
- How to change listing type permlink?
- In wordpress customizer div still showing even if I hid it with javascript
- How to enable admin to upload multiple images to support header carousel slider theme in WordPress?
- Removing element from DOM with jquery through plugin Custom Scripts for Customizer
- How to dynamically set a background image with the customizer without putting the css as an inline-style
- Image cropping isn’t working correctly when using Offload Media
- WordPress Custom Theme : Theme Builder vs ACF vs Gutenberg
- Fatal error: Class WP_Customize_Image_Control not found
- How do I remove header/page-title image in farvis theme? [closed]
- Duplicate child theme incl. design changes
- Styling the website via the customizer – do the changes stay after theme update?
- Is there a way to create sections under “Colors” panel in the Theme Customizer?
- How to toggle WP Customizer Panel and Section with JavaScript API?
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- How to customize the colors within a stylesheet using a WordPress setting
- Add multiple sections, settings and controls at once to the Customizer
- How to fix an issue with customizer live preview?
- How to create multiple customizer controls in one control
- Editable screenshot.png in a custom theme developed
- WordPress Customization API overwrite LESS variable
- Using Customizer value in an external PHP file inside a theme
- get_theme_mod not pulling css colors into header using wp_head
- Customizer API way function is_customize_preview() works only in main page?
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- trying to figure out how to use more that one image upload in the same section in theme customizer
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- How to show associated fields if checkbox is checked in customize widget screen using wp_customize?