How to Customize Tracking Result Page

  • Label filters:
  • How to use:
function wpccustom_label_callback(){

    return 'My Custom Label';

}
add_filter('result_shipper_address', 'wpccustom_label_callback');
  • Status section background color
    
    add_action('wp_head', function(){
    
        ?>
    
           <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-wp-preserve="%3Cstyle%3E%0A%0A%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%23shipment-status%20%23result-status-header%20%7B%0A%0A%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20background-color%3A%20%23000000%20!important%3B%0A%0A%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%7D%0A%0A%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%3C%2Fstyle%3E" data-mce-resize="false" data-mce-placeholder="1" class="mce-object mce-object-style" width="20" height="20" alt="&lt;style&gt;" />
    
        <?php
    
    });
    
    

To modify Background color of the status bar please add this to your current theme style.css file

/*---------------------------------------------------------------------
					Track Page
---------------------------------------------------------------------*/

.page #shipment-status #result-status-header  {
    background-color: purple!important;
}