Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Store Notice

<?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>
Comment

PREVIOUS NEXT
Code Example
Php :: joomla include jfactory 
Php :: laravel migration softdelete 
Php :: php code for adding dara 
Php :: get current page name for page active class 
Php :: what is WP_USE_THEMES 
Php :: 0 == "string" php 
Php :: cf7 first_as_label 
Php :: WPML - Add a floating language switcher to the footer 
Php :: to redo number_format php 
Php :: send nested array to laravel resource 
Php :: Fibers - PHP 8.1 
Php :: HASHING in php double scripting 
Php :: drupal 9 custom access checking for routes 
Php :: invalid menu item in wordpress 
Php :: laravel seed table 
Php :: symfony send exception 
Php :: laravel pagination prevent duplicate rows 
Php :: error import php 
Php :: laravel retain old value 
Php :: laravel length validation 
Php :: is_wplogin 
Php :: what is the mixmam size that php can take 
Php :: #@923uf8023hFO@I#H# 
Php :: laravel api routes 
Php :: php only includable file 
Php :: unlink() in php 
Php :: php send data from one page to another 
Php :: Select specefied columns from all data in laravel 
Php :: Laravael Blog Project 
Php :: How to protect your website from DDos Attack? 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =