Created
September 12, 2012 23:25
-
-
Save kristarella/3710728 to your computer and use it in GitHub Desktop.
Thesis single post title above post & sidebars
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
function remove_headline() { | |
return (is_single()) ? false : true; | |
} | |
add_filter('thesis_show_headline_area', 'remove_headline'); | |
function large_headline() { | |
global $wp_query; | |
$post_ID = $wp_query->post->ID; | |
if (is_single()) { | |
?> | |
<div class="headline_area"> | |
<h1 class="entry-title"><?php echo get_the_title($post_ID); ?></h1> | |
<?php thesis_byline(''); ?> | |
</div> | |
<?php | |
} | |
} | |
add_action('thesis_hook_before_content_box','large_headline'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment