Created
November 19, 2015 03:32
-
-
Save reasonstousegenesis/3764eb2441133c0327d4 to your computer and use it in GitHub Desktop.
Add a placeholder description if none is set
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 | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Add a placeholder description if none is set | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/site-description/ | |
*/ | |
add_action( 'genesis_site_description', 'rtug_placeholder_description' ); | |
function rtug_placeholder_description() { | |
if ( ! esc_html( get_bloginfo( 'description' ) ) ) | |
echo '<p class="site-description">Just another WordPress site</p>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment