Skip to content

Commit

Permalink
updated title markup
Browse files Browse the repository at this point in the history
  • Loading branch information
Netzberufler committed Apr 12, 2016
1 parent 68ef758 commit bc573ab
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 29 deletions.
2 changes: 1 addition & 1 deletion 404.php
Expand Up @@ -8,7 +8,7 @@

<div class="type-page">

<h2 class="page-title"><?php esc_html_e( '404: Page not found', 'smartline-lite' ); ?></h2>
<h1 class="page-title"><?php esc_html_e( '404: Page not found', 'smartline-lite' ); ?></h1>

<div class="entry">
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search or one of the links below?', 'smartline-lite' ); ?></p>
Expand Down
2 changes: 1 addition & 1 deletion archive.php
Expand Up @@ -12,7 +12,7 @@

<header class="page-header">
<?php
the_archive_title( '<h2 class="archive-title">', '</h2>' );
the_archive_title( '<h1 class="archive-title">', '</h1>' );
the_archive_description( '<div class="archive-description">', '</div>' );
?>
</header>
Expand Down
2 changes: 1 addition & 1 deletion content-excerpt.php
@@ -1,7 +1,7 @@

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

<?php the_title( sprintf( '<h1 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<?php the_title( sprintf( '<h2 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>

<div class="entry-meta postmeta"><?php smartline_display_postmeta(); ?></div>

Expand Down
2 changes: 1 addition & 1 deletion content-search.php
@@ -1,7 +1,7 @@

<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

<?php the_title( sprintf( '<h1 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<?php the_title( sprintf( '<h2 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>

<div class="entry clearfix">
<?php the_excerpt(); ?>
Expand Down
2 changes: 1 addition & 1 deletion content.php
@@ -1,7 +1,7 @@

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

<?php the_title( sprintf( '<h1 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<?php the_title( sprintf( '<h2 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>

<div class="entry-meta postmeta"><?php smartline_display_postmeta(); ?></div>

Expand Down
2 changes: 1 addition & 1 deletion featured-content-slider.php
Expand Up @@ -43,7 +43,7 @@
<?php endif;?>

<div class="slide-entry clearfix">
<?php the_title( sprintf( '<h1 class="slide-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<?php the_title( sprintf( '<h2 class="slide-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<div class="slide-content"><?php the_excerpt(); ?></div>
<a href="<?php esc_url(the_permalink()) ?>" class="slide-more-link"><?php esc_html_e( 'Read more &raquo;', 'smartline-lite' ); ?></a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions inc/widgets/widget-category-posts-boxed.php
Expand Up @@ -120,7 +120,7 @@ function render( $settings ) {

<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail('category_posts_wide_thumb'); ?></a>

<?php the_title( sprintf( '<h1 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<?php the_title( sprintf( '<h2 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>

<div class="entry-meta postmeta"><?php $this->display_postmeta( $settings ); ?></div>

Expand All @@ -141,7 +141,7 @@ function render( $settings ) {
<?php endif; ?>

<div class="small-post-content">
<?php the_title( sprintf( '<h1 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<?php the_title( sprintf( '<h2 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<div class="entry-meta postmeta"><?php $this->display_postmeta( $settings ); ?></div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions inc/widgets/widget-category-posts-columns.php
Expand Up @@ -153,7 +153,7 @@ function display_category_posts( $settings, $category_id ) {

<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail('category_posts_wide_thumb'); ?></a>

<?php the_title( sprintf( '<h1 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<?php the_title( sprintf( '<h2 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>

<div class="entry-meta postmeta"><?php $this->display_postmeta( $settings ); ?></div>

Expand All @@ -172,7 +172,7 @@ function display_category_posts( $settings, $category_id ) {
<?php endif; ?>

<div class="small-post-content">
<?php the_title( sprintf( '<h1 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<?php the_title( sprintf( '<h2 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<div class="entry-meta postmeta"><?php $this->display_postmeta( $settings ); ?></div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions inc/widgets/widget-category-posts-grid.php
Expand Up @@ -137,7 +137,7 @@ function render( $settings ) {
<?php endif; ?>

<div class="small-post-content">
<?php the_title( sprintf( '<h1 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<?php the_title( sprintf( '<h2 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<div class="entry-meta postmeta"><?php $this->display_postmeta( $settings ); ?></div>
</div>

Expand All @@ -151,7 +151,7 @@ function render( $settings ) {

<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail('category_posts_wide_thumb'); ?></a>

<?php the_title( sprintf( '<h1 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<?php the_title( sprintf( '<h2 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>

<div class="entry-meta postmeta"><?php $this->display_postmeta( $settings ); ?></div>

Expand Down
2 changes: 1 addition & 1 deletion inc/widgets/widget-category-posts-single.php
Expand Up @@ -114,7 +114,7 @@ function render( $settings ) {

<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( 'category_posts_single' ); ?></a>

<?php the_title( sprintf( '<h1 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<?php the_title( sprintf( '<h2 class="entry-title post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>

<div class="entry-meta postmeta"><?php $this->display_postmeta( $settings ); ?></div>

Expand Down
4 changes: 2 additions & 2 deletions search.php
Expand Up @@ -11,9 +11,9 @@
<?php if ( function_exists( 'themezee_breadcrumbs' ) ) themezee_breadcrumbs(); ?>

<header class="page-header">
<h2 id="search-title" class="archive-title">
<h1 id="search-title" class="archive-title">
<?php printf( esc_html__( 'Search Results for: %s', 'smartline-lite' ), '<span>' . get_search_query() . '</span>' ); ?>
</h2>
</h1>
</header>

<?php if (have_posts()) : while (have_posts()) : the_post();
Expand Down
19 changes: 5 additions & 14 deletions template-fullwidth.php
Expand Up @@ -11,22 +11,13 @@

<?php if ( function_exists( 'themezee_breadcrumbs' ) ) themezee_breadcrumbs(); ?>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<div <?php post_class(); ?>>

<h2 class="page-title"><span><?php the_title(); ?></span></h2>

<div class="entry clearfix">
<?php the_content(); ?>
</div>
<?php wp_link_pages(); ?>

</div>
<?php if (have_posts()) : while (have_posts()) : the_post();

get_template_part( 'content', 'page' );

<?php endwhile; ?>
endwhile;

<?php endif; ?>
endif; ?>

<?php comments_template(); ?>

Expand Down

0 comments on commit bc573ab

Please sign in to comment.