Guest User

Untitled

a guest
Apr 20th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. if ( ! function_exists( 'electro_post_archive_header' ) ) {
  2. function electro_post_archive_header() {
  3. if( is_home() ) {
  4. ?>
  5. <header class="page-header">
  6. <h1 class="page-title">Blog</h1>
  7. </header><!-- .page-header -->
  8. <?php
  9. } elseif( is_archive() && 'post' == get_post_type() ) {
  10. ?>
  11. <header class="page-header">
  12. <?php
  13. the_archive_title( '<h1 class="page-title">', '</h1>' );
  14. the_archive_description( '<div class="taxonomy-description">', '</div>' );
  15. ?>
  16. </header><!-- .page-header -->
  17. <?php
  18. }
  19. }
  20. }
  21. add_action( 'electro_content_top', 'electro_post_archive_header', 15 );
Add Comment
Please, Sign In to add comment