Skip to content

Instantly share code, notes, and snippets.

@mushon
Created May 17, 2011 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mushon/976759 to your computer and use it in GitHub Desktop.
Save mushon/976759 to your computer and use it in GitHub Desktop.
<?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