Skip to content

Instantly share code, notes, and snippets.

@AnnaCrumina
Forked from crumina/functions.php
Last active August 29, 2015 14:18
Show Gist options
  • Save AnnaCrumina/2bef2b866b0b6f388d03 to your computer and use it in GitHub Desktop.
Save AnnaCrumina/2bef2b866b0b6f388d03 to your computer and use it in GitHub Desktop.
<?php
function cr_custom_header_titles() {
if ( is_single() ) { ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php } else { ?>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __('%s', 'crum'), the_title_attribute('echo=0') ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php }
}
function 153_change_custom_post_title(){
remove_action('reactor_post_header', 'reactor_do_standard_header_titles', 2);
add_action('reactor_post_header', 'cr_custom_header_titles', 2);
}
add_action('init', 153_change_custom_post_title', 1);
@AnnaCrumina
Copy link
Author

put some element under post title

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment