Thanks to the tipoff from @birgire in the comment, I was able to locate two things, an example of an implementation that includes context
, here (also of note is that the Github gist has code for the very useful ability to access any image uploaded from this context previously!
https://gist.github.com/eduardozulian/4739075
/**
* Example of inserting a section called "Branding" with a
* context-based image uploader
*/
$wp_customize->add_section( 'my_branding', array(
'title' => __( 'Branding', '' ),
'priority' => 30,
) );
$wp_customize->add_setting( 'my_logo', array(
'capability' => 'edit_theme_options'
) );
$wp_customize->add_control( new My_Customize_Image_Reloaded_Control( $wp_customize, 'my_logo', array(
'label' => __( 'Logo', '' ),
'section' => 'my_branding',
'settings' => 'my_logo',
'context' => 'my-custom-logo'
) ) );
Related Posts:
- 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)
- Disabling Customizer Selective Refresh shortcut icons for selected controls
- 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
- Is it possible to visually group items on the theme customizer?
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Default Text not showing from customizer
- How to transfer one domain to another domain without losing theme options (customizer)?
- Is there a WordPress boolean for “theme_customizer_active()”?
- Customizer: get_preview_url() inside customize_save_after hook
- add shortcode support in customizer
- What is difference between add_theme_support and Theme Customization API?
- Text View (Code View) in WordPress Customizer TinyMCE Editor
- WordPress Customizer Help with FontAwesome Icon
- Customizer API way function is_customize_preview() works only in main page?
- trying to figure out how to use more that one image upload in the same section in theme customizer
- When to use is_home() vs is_front_page()?
- Theme customizer – settings order
- Is it possible ( or advisable) to allow open access to the new theme customizer for potential clients?
- Add a dropdown to theme customizer
- Can I create customizer setting that can handle plugin shortcode?
- Editing the custom background CSS
- How to force Media manager to overwrite files of same name?
- Is the theme customizer slowing down my site?
- WordPress Customize — Move “menus” options / field to another section
- Changing the entire control choices using wp.customize with JavaScript
- “Display Site Title and Tagline” checkbox not working?
- WordPress how to override function adjacent_posts_rel_link_wp_head() in link-template.php the correct way
- How to regenerate thumbnails when they’re stored on S3
- How to retrieve an image from a post and display it before excerpt of a post? [duplicate]
- Best approach to create sites with Modular Content? [closed]
- How can one update a theme on a live site without interruption?
- What’s the best action to use when you want to do something only once per theme setup?
- Change setting name in Customizer and keep the data
- How to upload images using Settings API
- Creating multiple hooks for theme
- after_setup_theme, Global Variable and Theme Customizer
- Customizer: widget-synced triggers twice
- How to add a second stylesheet to the editor
- Get a setting value conditionally in the Customizer api
- WP_Customize_Color_Control omitting # symbol
- Conditional statement to show pagination
- How to create a custom template to admin dashboard
- How to make animated intro?
- Theme-wide custom post template
- How to display all subpages and short by year
- Getting custom posts by post id from cutomizer text input
- StoreFront product pages: Turn the Short Description section into a kindred tab section [closed]
- Zoom on custom theme without child
- Dynamically generated wordpress customizer options?
- Changing a slider to a grid [closed]
- Custom Navigation build using wp_nav_menu and walker
- How to disable wordpress from overload my stylesheet styles with customizer styles
- Is there any way to register custom background images like header images?
- Theme Customizer not displaying saved values in wp_head (CSS)
- How to make theme configurable
- Extending Twenty Eleven Theme
- How to allow certain PHP functions when using sanitize_callback in the word press customizer
- where is real values of variables?
- How to allow users to create their own website within my domain? [closed]
- Templates without a loop, best practice?
- Doing context-aware previews in the WordPress Customizer
- Alignment Problem [closed]
- Avada Child Theme Development
- CSS added through customizer neglects the need of a child theme?
- Theme customizer – can’t add section/settings
- Clearing dummy data before launch
- WordPress creating images if uploaded image is greater than 960px on one side?
- Create theme for mobile phones and tablets only?
- Using the media library for theme customization
- Twenty Twelve Author not displaying
- Alternatives to handle customizer settings
- How to copy page/post from one theme to another?
- 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 Do I Create a WordPress Demo Site with Limited Admin Access
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- How to show Custom Field Value in Woocommerce Shop Page
- Is hand coding required at all?
- How to show some of category in wordpress
- 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
- How to get url image page the right way?
- Load get_page_templates into select menu
- Undefined index: custom_sidebars
- page.php is not called when I load a Page
- “No Data Received” error in Chrome every time i try to update the theme functions file
- How to add button to top of theme customizer?
- Turning WordPress Into full-featured website?
- How do I make it super customisable?
- How to set up a development/staging site to make major changes to the theme then update on the live site?
- 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)