Long shot, but if you happen to not follow the recommended format and include the number sign with the HEX code when you define the default colour in your theme support, like this:
if (function_exists('add_theme_support')) {
$defaults = array('default-color' => '#666');
add_theme_support( 'custom-background', $defaults );
}
Then, with your code above, you will end up with HTML like this:
<style type="text/css">body.body { background: ##666; }</style>
That’s going to mess up a lot of things (in the front AND back), not just media uploader.
Related Posts:
- settings API: how to create a multi checkbox with blog categories?
- Custom Background-Image not showing up
- Stop post being published
- Custom Background not Appearing
- Background image not appearing
- call_user_func_array expects parameter 1 to be a valid callback
- Code works, but warning about call_user_func_array() appears
- Replaceing _custom_background_cb
- Why, when it comes to custom background and image, does ‘The first value registered’ win?
- Category callback box problem
- I need help with this error [duplicate]
- How to add CSS class to custom logo?
- How to pass arguments from add_settings_field() to the callback function?
- current_shortcode() – detect currently used shortcode
- featured image as background image on pages
- How do I add settings to the Background Options Page?
- wp enqueue script using scripts from cdn with a safety callback
- Advantages and disadvantages of using automatic-feed-links
- Can an action callback prevent the parent from continuing execution?
- Image upload callback in new 3.5 media
- WordPress REST API – Permission Callbacks
- Why does `add_theme_support( ‘html5’, array( ‘comment-form’ )` disable client side validation?
- How WP_Customize_Background_Image_Control is supposed to work?
- How to get attachment id of background image?
- Include a page template along with add_theme_support()
- Using a private method as an action callback from within a class
- How to check if which hook triggered the call to a function?
- Editing the custom background CSS
- Callback for wp.autosave.server.triggerSave();
- How do I hook an Ajax request into a PHP callback?
- WP showing “warning: call_user_func_array()”, What to do?
- Add custom background to div in home page
- Change background color with a dominant from picture
- How to add default images for custom backgrounds?
- gutenberg dynamic block is returning 404
- Hooking a callback into the code within a Gutenberg block
- Add_settings_field() parameterizing callback?
- Remove Tag from theme support
- Add colors to existing color palette without replacing it
- add image size still doesn’t work even after regenerating thumbnails
- How to pass variable via $callback_args for add_meta_box
- Display custom_background outside wp_head()
- REQUIRED: The theme must not used the tags. | REQUIRED: The theme must not call to wp_title()
- ob_get_clean returns empty string, ob_get_flush outputs string
- replace current_page_item class in menu
- How do I use the control callback when creating a simple dashboard plugin
- FireFox Inspector :: find CSS file related to
- Override image maximum width in theme (Using Gutenberg editor)
- how to pull images with no add_theme_support(‘post_thumbnails’)
- Multiple Custom_Background, is it possible?
- What flex-width/height does?
- How to get control choices from $setting object passed to sanitize_callback
- Custom background for the index page only?
- Update term count using a callback function
- add_theme_support(‘my-custom-feature’)
- Is it possible to create an action hook using do_action() within add_action()?
- Add theme support for post thumbnails
- add_theme_support using a plugin
- Extend Woocommerce rest api routes fails
- Get returned variable from a function to add_shortcode function
- PHP Warning: call_user_func() expects parameter 1 to be a valid callback
- esc_url not working within add_settings_field callback
- add_theme_support( ‘custom-header’ ) does not add option menu in dashboard
- How to Override default update_count_callback for category
- How to edit layout of a particular post format?
- Reference external file as a function
- Get background color for Live Preview with Theme Customization API?
- Formatting Multiple add_theme_support Arguments
- How to add a custom font in a theme
- Can we access the REST request parameters from within the permission_callback to enforce a 401 by returning false?
- wp_insert_post() Callback?
- How to use wp_send_json_error?
- JetPack Infinite Scroll not working on custom theme
- How can one utilize a variable as a callback function name for add_settings_field
- @wordpress/create-block image url in css
- Callback URL in WordPress
- Is this possible to attach the background image to a div instead of body?
- .editor-styles-wrapper overriding my block styles in Gutenberg
- How to add background image control to page admin controls?
- How to validate register settings array
- check current_theme_supports in admin_menu hook
- How to customize a divs background dynamically using Advanced Custom Fields Plugin?
- Will current_theme_supports return TRUE with a nonstandard add_theme_support?
- How do I check if AJAX nonces are implemented correctly?
- default callback function in wp_list_comments
- Weekly background code not working
- Implementing “Random” to custom-background
- “add_theme_support” for custom footer color?
- Show video as part of the post?
- call_user_func_array() errors after migrating site with InstantWP
- How to add theme support?
- Adding schema.org itemprop to WP4.1 Title Tag
- What is the callback sent to add_submenu_page() invoked by WordPress?
- add_theme_support(‘custom-header’) does not add the option to customize
- How to remove custom background?
- How to define a callback for an URI?
- Gutenberg: How to check if a block is used in a paginated post?
- settings_fields doesn’t appear to be running
- How to insert a record by clicking on the link using AJAX
- Problems with comments callback (Argument #1 is not an array?)