Last active
August 29, 2015 13:57
-
-
Save fovoc/9787830 to your computer and use it in GitHub Desktop.
How to change homepage title in Shoestrap 3.1.0.2
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
/* | |
* Change homepage title | |
*/ | |
function shoestrap_new_homepage_title() { | |
echo 'My new title'; | |
} | |
function shoestrap_change_homepage_title() { | |
if (is_home()) { | |
add_action( 'shoestrap_page_header_override', 'shoestrap_new_homepage_title' ); | |
} | |
} | |
add_action( 'wp', 'shoestrap_change_homepage_title' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment