Check for global variable $wp_customize
:
if ( empty ( $GLOBALS['wp_customize'] ) )
{
// show something
}
Update: in WordPress 4.0, you can use is_customize_preview()
.
Related Posts:
- Remove line breaks in wp_list_categories()?
- different tag different stylesheet
- Is there a way to display a menu using the ol tag instead of the default ul tag?
- Getting tagid from tagname
- Sort list of page templates a-z?
- How do I str_replace with template tag?
- How to modify template tags function?
- Template tags not working in the customizer preview
- edit_post_link returns blank
- Get list of body classes for X page?
- Use template tags in code snippets wordpress
- Misleading information in the Codex, how do they get away with it? [closed]
- Settings API vs Theme Customizer
- get_option() vs get_theme_mod(): Why is one slower?
- How do I remove a pre-existing customizer setting?
- New WP_Customize API – how does it work under the hood?
- Custom Image section in Customizer
- Is it Possible to Extend WP Customize JS Methods?
- why doesn’t the_content() work in this {single-custom_post_type.php} page?
- SSL breaks customizer: page isn’t returned from ajax
- Changes in widget customizer not triggering ‘save and publish’
- Add custom background to div in home page
- How do I handle the “WP_Customize_Cropped_Image_Control” callback?
- Remove ‘Menus’ from Twenty Sixteen theme Customizer
- Make Theme Options Native to Theme Customizer
- get_theme_mod(); returns nothing
- Can I change a control’s transport in Customizer depending on the previewed page?
- Customizer JS API: Defining control settings
- Customizer JS API: Adding Setting Dynamically Not Working
- Problems with creating sortable sections in customizer
- Customizer Show/Hide Logo and Site Title
- Customizer image control default value showing in customizer but not on frontend
- How to get custom image size for image uploaded in Customizer
- SSL: How to make customizer images Protocol Relative in WordPress?
- Default header image does not display
- How to enable “shift-click to edit this widget” functionality on a custom widget?
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- get_theme_mod is returning a number rather than my image file
- Theme customization based on grouped pages
- How to remove scripts/style added to customize_controls_enqueue_scripts hook by current active theme
- add_theme_support(‘custom-header’) does not add the option to customize
- Create custom control for WordPress customizer using JavaScript
- Customizer Not Applying Any Change, No Error Thrown
- get_option in header.php not returning value from customizer
- Internal error 500 accessing Theme > Customize
- Multiple Conditional Controllers
- How to Get WP_Customize_Image_Control content?
- WordPress menu link doesn’t work properly
- How to use Vuejs inside a custom control?
- Display theme layouts [closed]
- Radio buttons live refresh in the customizer
- Is accessing theme and using customizer GPL distribution?
- Problem Cropping Images From WP Customizer
- Customizer Ajax
- Theme Customizier sanitize_callback not working
- How to enqueue javascript for WP Customize options sidebar?
- Add post type titles in customizer dropdown list
- How do I remove a customiser option from a parent theme in a child theme?
- Place a message in theme customizer sidebar
- Is there any way to register custom background images like header images?
- Customizer Color Control Not Working
- How to add custom classes to the customizer panels, sections or controls?
- How to edit alternate inactive themes in “Appearance -> Customise” screen?
- Theme Check plugin error when I add ‘©’ [closed]
- Detect device change (desktop, tablet or mobile) in Customizer
- Kirki: generate toggles for each taxonomy term
- Allow multiple settings to be stored in a single option in Theme customizer
- Theme customizer not working
- Remove Customizer Control Choices (Type: Radio Array) using Child Themes
- WP Customizer API loaded into functions.php
- Can we hook the Customizer on a post or page on the front of the site?
- Second Level Menu
- Customizer List of Items
- How would you set Theme Customizer API Previewer Preview URL of a Logged out Page or Login Screen
- Custom link with checkbox that adds additional word to checked menu items
- How to save theme customizer values as sub-array?
- In wordpress customizer div still showing even if I hid it with javascript
- Change a customizer control based on another control’s value dynamically
- Impossible to declare box-shadow with wp.customize?
- Domain redirect seems to break WP customizer
- Top header to edit page not present in one page
- WordPress Customizer not allowing menu options
- Customizer Get Control Choices on Change
- Change default color scheme in twentyfifteen child theme?
- Dynamic image for Jumbotron on WordPress Custom Theme
- Duplicate child theme incl. design changes
- Having SSL enabled on admin, but disabled on post preview and live preview?
- Customizer doesn’t recognise sidebar
- How to implement Selective Refresh within posts?
- How to customize the colors within a stylesheet using a WordPress setting
- Dynamic sidebar areas not working on the Theme Customizer
- How to create multiple customizer controls in one control
- WordPress Customization API overwrite LESS variable
- wp_query – Modify $query to include duplicate content
- ‘Post_tag’ taxonomy tags don’t link to existing posts in CMS
- Menu is not styled properly and footer as well [closed]
- In which file can I find the custom CSS code I entered?
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- How to return responsive images from a sanitize_callback?
- Customizer cuistom CSS Priority ordre Issue