Skip to content

Instantly share code, notes, and snippets.

@StewartChamberlain
Last active December 18, 2015 16:09
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 StewartChamberlain/5808896 to your computer and use it in GitHub Desktop.
Save StewartChamberlain/5808896 to your computer and use it in GitHub Desktop.
<?php
add_action( 'genesis_before_content', 'sc_tag_message' );
function sc_tag_message() {
if ( is_tag() ) {
$current_tag = single_tag_title("", false);
$message = '<div class="tag-message">';
$message .= '<h3> Please click on the blog on '. $current_tag .' below</h3>';
$message .= '</div>';
echo $message;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment