Created
May 17, 2011 16:10
-
-
Save mushon/976759 to your computer and use it in GitHub Desktop.
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 | |
// First we make our function | |
function childtheme_welcome_blurb() { | |
// We'll show it only on the HOME page IF it's NOT paged | |
// (so, not page 2,3,etc.) | |
if (is_home() & !is_paged()) { ?> | |
<!-- our welcome blurb starts here --> | |
<div id="welcome-blurb"> | |
<p>Welcome to <?php bloginfo('name'); ?>.</p> | |
</div> | |
<!-- our welcome blurb ends here --> | |
<?php } | |
} // end of our new function childtheme_welcome_blurb | |
// Now we add our new function to our Thematic Action Hook | |
add_action('thematic_belowheader','childtheme_welcome_blurb'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment