Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( ! function_exists( 'electro_post_archive_header' ) ) {
- function electro_post_archive_header() {
- if( is_home() ) {
- ?>
- <header class="page-header">
- <h1 class="page-title">Blog</h1>
- </header><!-- .page-header -->
- <?php
- } elseif( is_archive() && 'post' == get_post_type() ) {
- ?>
- <header class="page-header">
- <?php
- the_archive_title( '<h1 class="page-title">', '</h1>' );
- the_archive_description( '<div class="taxonomy-description">', '</div>' );
- ?>
- </header><!-- .page-header -->
- <?php
- }
- }
- }
- add_action( 'electro_content_top', 'electro_post_archive_header', 15 );
Add Comment
Please, Sign In to add comment