Уведомление о магазине
<?php
// Store notice above top bar
function header_notification() {
echo '<div class="global-site-notice custom-notice">
<div class="notice-inner">
<h6 class="inner-text">Free Shipping for All Orders Over R1000</h6>
</div>
</div>';
}
add_action('wp_head', 'header_notification');
?>
<style>
.global-site-notice.custom-notice {
background-color: #CCA884;
border: none;
}
.global-site-notice.custom-notice .notice-inner {
background: 0 0;
width: auto;
margin-left: auto;
margin-right: auto;
text-align: center;
color: #fff;
font-weight: 400;
padding: 10px 0 2px;
max-width: 980px;
min-height: 0;
font-size: 14px;
line-height: 0px;
}
.global-site-notice.custom-notice .notice-inner .inner-text {
font-size: 14px;
font-weight: 600;
line-height: 0;
color: #fff;
}
</style>
Bongani