WordPress at Your Fingertips
function is not described

WC_Shop_Customizer::add_styles() public WC 1.0

CSS styles to improve our form.

{} It's a method of the class: WC_Shop_Customizer{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Shop_Customizer = new WC_Shop_Customizer();
$WC_Shop_Customizer->add_styles();

Code of WC_Shop_Customizer::add_styles() WC 5.6.0

<?php
public function add_styles() {
	?>
	<style type="text/css">
		.woocommerce-cropping-control {
			margin: 0 40px 1em 0;
			padding: 0;
			display:inline-block;
			vertical-align: top;
		}

		.woocommerce-cropping-control input[type=radio] {
			margin-top: 1px;
		}

		.woocommerce-cropping-control span.woocommerce-cropping-control-aspect-ratio {
			margin-top: .5em;
			display:block;
		}

		.woocommerce-cropping-control span.woocommerce-cropping-control-aspect-ratio input {
			width: auto;
			display: inline-block;
		}
		<?php
		// For FSE themes hide the back button so we only surface WooCommerce options.
		if ( function_exists( 'gutenberg_is_fse_theme' ) && gutenberg_is_fse_theme() ) {
			?>
				#sub-accordion-panel-woocommerce .customize-panel-back{
					display: none;
				}
				#customize-controls #sub-accordion-panel-woocommerce .panel-meta.customize-info .accordion-section-title {
					margin-left: 0;
				}
			<?php
		}
		?>
	</style>
	<?php
}