WC_Shop_Customizer::add_frontend_scripts
Frontend CSS styles.
Method of the class: WC_Shop_Customizer{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Shop_Customizer = new WC_Shop_Customizer(); $WC_Shop_Customizer->add_frontend_scripts();
WC_Shop_Customizer::add_frontend_scripts() WC Shop Customizer::add frontend scripts code WC 10.5.0
public function add_frontend_scripts() {
if ( ! is_customize_preview() || ! is_store_notice_showing() ) {
return;
}
$css = '.woocommerce-store-notice, p.demo_store { display: block !important; }';
wp_add_inline_style( 'customize-preview', $css );
}