Last active
December 19, 2020 01:25
-
-
Save woogist/4e1e1f59bbca9d997ae7 to your computer and use it in GitHub Desktop.
Adds a top bar to Storefront, before the header
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
<?php | |
/** | |
* Adds a top bar to Storefront, before the header. | |
*/ | |
function storefront_add_topbar() { | |
?> | |
<div id="topbar"> | |
<div class="col-full"> | |
<p>Your text here</p> | |
</div> | |
</div> | |
<?php | |
} | |
add_action( 'storefront_before_header', 'storefront_add_topbar' ); |
Your text here
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get a server error 500 when adding this - so please omit the <?php when documenting these gist/snippets..