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
- current_shortcode() – detect currently used shortcode
- How do I add settings to the Background Options Page?
- wp enqueue script using scripts from cdn with a safety callback
- How to get attachment id of background image?
- Editing the custom background CSS
- 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
- 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
- REQUIRED: The theme must not used the tags. | REQUIRED: The theme must not call to wp_title()
- replace current_page_item class in menu
- 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?
- How to get control choices from $setting object passed to sanitize_callback
- Update term count using a callback function
- Is it possible to create an action hook using do_action() within add_action()?
- PHP Warning: call_user_func() expects parameter 1 to be a valid callback
- esc_url not working within add_settings_field callback
- How to add a custom font in a theme
- @wordpress/create-block image url in css
- Is this possible to attach the background image to a div instead of body?
- How to add background image control to page admin controls?
- check current_theme_supports in admin_menu hook
- How to customize a divs background dynamically using Advanced Custom Fields Plugin?
- “add_theme_support” for custom footer color?
- call_user_func_array() errors after migrating site with InstantWP
- Adding schema.org itemprop to WP4.1 Title Tag
- How to define a callback for an URI?
- Multiple options pages validation for a plugin
- Using shortcode content with nested shortcode
- Theme Development: Starter Content after hook
- Callback to custom field is not working in WordPress REST API
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- Best practice for query_posts in responsive design?
- How to Dynamically Load Content Into Body of Bootstrap Modal Window?
- Customizer: Category Select Sanitize
- Settings API callback function inserts html quotes from nowhere
- How to use add_theme_support(‘html5’)?
- Custom header tiling?
- Using featured img as div background
- Filter Hook callback error, is it due to using $this inside a filter or something else?
- Website Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘Wppr_Public’ does not have a method ‘amp_support’
- Post-thumbnail only for specific post-types?
- url – ajax loaded but no JS
- Remove or rename “Default” from Gutenberg typography settings
- Theme support title tag – how to replace the default WP separator (with a filter)?
- admin_notices action doesn’t trigger within save_post action
- How To Override A WooCommerce AJAX Function
- Callback After WordPress Customizer Complete Loading
- Customiser sections not being displayed with `active_callback`
- Ajax insert or update data
- images not showing despite using add_theme_support(‘post-thumbnails’);
- Add theme support custom header will not hide text?
- Footer Columns Size [closed]
- Section Background Images?
- Blank/White on certain parts of pages
- Menu not appearing in custom theme
- Problem with Class, Filters and Callbacks
- Random sidebar/widget background
- How to change the background color of my header dynamically based on a Custom Posts types color value?
- Some problems calling a function into sprintf() inside functions.php template file [closed]
- Post to inherit custom category background image from parent
- Add Post Format Support to Twentyeleven Child Theme
- How do i specify a url to which to redirect the user after he logs out from facebook?
- Fullscreen Page Background without Plugin [closed]
- Update block once an API request returns with a value
- What is difference between add_theme_support and Theme Customization API?
- Warning and fatal error
- Serving a custom featured image for mobile
- Custom Background for each page and post
- What is the proper way to call a function (from functions.php) on a link click?
- How do I change theme demo [duplicate]
- Featured Image as Background with Offset
- Calling PHP function doesn’t work in index.php
- Featured image url
- How to correctly add the featured immage (thumbnails) support in a WP theme? Why I can’t add a featured immage?
- First argument is expected to be a valid callback for cp_admin_init and _canonical_charset
- Create a body div using CSS [closed]
- Problems Replacing Background Color with Static Background Image in Responsive Design
- How can i display in themplate file only a few post
- How to Disable Color Options?
- background changed after WordPress update
- How to customize a theme? [closed]
- Callback API for getting response from fygaro payment gateway
- how to change background color of my all post
- Add theme support for margin