Adding static content to the Storefront header requires hooking a function that outputs your content into storefront_header
.
Note: This is a Developer level doc. If you are unfamiliar with code/templates and resolving potential conflicts, select a WooExpert or Developer for assistance. We are unable to provide support for customizations under our Support Policy.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'storefront_header', 'jk_storefront_header_content', 40 ); | |
function jk_storefront_header_content() { ?> | |
<div style="clear: both; text-align: right;"> | |
Have questions about our products? <em>Give us a call:</em> <strong>0800 123 456</strong> | |
</div> | |
<?php | |
} |