I'm developing a custom WooCommerce theme and I'm trying to implement a custom site-wide notice banner. I want the user to enable, disable and customize the message via Appearance > Customize > WooCommerce > Store Notice, just like the Storefront theme, but with custom HTML, CSS and positioning over the page. The idea was to read (somehow) via PHP the "Store Notice" (string) and "Enable Store Notice" (boolean) values and, based on their values, display or not the notice. How can I read those fields via PHP? Thanks.
Psuedo:
...other HTML
<?php if (ENABLE_STORE_NOTICE == true) { ?>
<div class="text-center text-white">
<span class="heading-xxs letter-spacing-xl">
<?php echo STORE_NOTICE_MESSAGE; ?>
</span>
</div>
<?php } ?>
...other HTML
function woocommerce_demo_store()
and Adding html to WooCommerce Store Notice using filters – 7uc1f3r