This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Add Background-Size to Customizer

Description

This plugin for WordPress adds a background-size controller to the Background Image section in the WordPress Customizer.

You can access the new controller by going to Appearance > Customize from the Dashboard, and clicking on the Background Image section.

Once you’ve added your custom background image, you can set your background-image size to:
– โ€œCoverโ€: As large as possible; fills entire view, with cropping.
– โ€œContainโ€: As large as possible, without cropping; fits inside of view.
– โ€œ100% widthโ€: Width fits view perfectly, height may be smaller or larger than view (equivalent to css โ€˜100% autoโ€™).
– โ€œ100% heightโ€: Height fits view perfectly, width may be smaller or larger than view (equivalent to css โ€˜auto 100%โ€™).
– โ€œInheritโ€: Sets background size to whatever parent element is set to (html, in this case).
– โ€œCustomโ€: Allows you to put in your own css to be applied in the section called โ€œCSS for background-size (if โ€˜customโ€™ selected).โ€

To learn more about the CSS background-size property, go to:

https://developer.mozilla.org/en-US/docs/Web/CSS/background-size
or
http://www.w3schools.com/cssref/css3_pr_background-size.asp

Notes

Notes:
*The plugin works by adding styles to the body.custom-background class. If the default custom-background support has been disrupted, then this plugin will not work.

Screenshots

Installation

  1. Upload add-bg-size-to-customizer.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the โ€˜Pluginsโ€™ menu in WordPress

That’s it!

Reviews

Read all 1 review

Contributors & Developers

“Add Background-Size to Customizer” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.0.1

  • Initial release