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
//* Add new widget area between posts of home page | |
genesis_register_sidebar( array( | |
'id' => 'between-posts-area', | |
'name' => __( 'Between Posts Area', 'genesis-theme' ), | |
'description' => __( 'This widget show between and after few posts.', 'genesis-theme' ), | |
) ); | |
//* Add widget area between and after 2 posts |
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
<html> | |
<head> | |
<?php wp_head(); ?> | |
</head> | |
<body <?php body_class(); ?>> | |
<div id="container"> | |
<div id="header"> | |
<h1 id="header-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> | |
<div id="header-description"><?php bloginfo( 'description' ); ?></div> | |
</div><!-- #header --> |
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
<?php get_header(); ?> | |
<?php if ( have_posts() ): ?> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<?php get_template_part( 'content', get_post_format() ); ?> | |
<?php endwhile; ?> | |
<?php | |
the_posts_pagination( array( | |
'prev_text' => __( 'Previous', 'wbxpress-one' ), | |
'next_text' => __( 'Next', 'wbxpress-one' ), | |
'before_page_number' => '', |
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
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<?php | |
if ( is_single() || is_page() ) { | |
the_title( '<h2>', '</h2>' ); | |
} else { | |
the_title( sprintf( '<h2><a href="%s">', esc_url( get_permalink() ) ), '</a></h2>' ); | |
} | |
?> | |
<?php if ( ! is_page() ): ?> | |
<div class="post-meta"> |
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
<div> | |
<h2><?php _e( 'Nothing Found', 'wbxpress-one' ); ?></h2> | |
<?php if ( is_search() ): ?> | |
<p><?php _e( 'Sorry, but nothing matched your search terms.', 'wbxpress-one' ); ?></p> | |
<?php else: ?> | |
<p><?php _e( 'It seems we can’t find what you’re looking for.', 'wbxpress-one' ); ?></p> | |
<?php endif; ?> | |
<?php get_search_form(); ?> | |
</div> | |
<div class="clear post-spt"></div> |
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
<?php get_header(); ?> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<?php get_template_part( 'content', get_post_format() ); ?> | |
<?php if ( comments_open() || get_comments_number() ) : ?> | |
<?php comments_template(); ?> | |
<?php endif; ?> | |
<?php endwhile; ?> | |
<?php get_sidebar(); ?> | |
<?php get_footer(); ?> |
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
<?php | |
if ( post_password_required() ) { | |
return; | |
} | |
function wbxpressone_comment_nav() { | |
// Are there comments to navigate through? | |
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : | |
?> |
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
<?php | |
if ( ! isset( $content_width ) ) { | |
$content_width = 550; | |
} | |
if ( ! function_exists( 'wbxpressone_setup' ) ) { | |
function wbxpressone_setup() { | |
add_theme_support( 'title-tag' ); |
OlderNewer