Skip to content

Commit

Permalink
changed all h2 titles to h1
Browse files Browse the repository at this point in the history
  • Loading branch information
Netzberufler committed Nov 5, 2015
1 parent 08b7ece commit 9cf5fae
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 29 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Expand Up @@ -2,6 +2,11 @@
Smartline Lite Changelog
===================================

Version 1.2.9
-----------------------------------
[changed] all h2 post and page titles to h1 for better SEO
[fixed] postmeta styling for widget bundle

Version 1.2.8
-----------------------------------
[added] escaping for translation strings for improved security
Expand Down
2 changes: 1 addition & 1 deletion content-excerpt.php
@@ -1,7 +1,7 @@

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

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

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

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

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

<h2 class="page-title entry-title"><?php the_title(); ?></h2>
<?php the_title( '<h1 class="page-title">', '</h1>' ); ?>

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

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

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

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

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

<h2 class="post-title entry-title"><?php the_title(); ?></h2>
<?php the_title( '<h1 class="entry-title post-title">', '</h1>' ); ?>

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

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

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

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

<div class="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">
<h2 class="slide-title"><a href="<?php esc_url(the_permalink()) ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php the_title( sprintf( '<h1 class="slide-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<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 @@ -128,7 +128,7 @@ function render($instance) {

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

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

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

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

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

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

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

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

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

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

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

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

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

Expand All @@ -159,7 +159,7 @@ function render($instance) {

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

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

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

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

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

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

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

Expand Down
32 changes: 16 additions & 16 deletions style.css
Expand Up @@ -2,7 +2,7 @@
Theme Name: Smartline Lite
Theme URI: http://themezee.com/themes/smartline/
Description: Smartline Lite is a perfect theme for news and magazine websites as well as simple blogs. The responsive design with bold colors and smart lines looks great on any device. The main highlight of Smartline is the flexible and widgetized front page template which allows you to create a magazine-styled homepage with ease.
Version: 1.2.8
Version: 1.2.9
Author: ThemeZee
Author URI: http://themezee.com
Tags: two-columns, light, blue, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, sticky-post, threaded-comments, translation-ready, theme-options, fluid-layout, responsive-layout, one-column, left-sidebar, right-sidebar, three-columns, black, silver, white, gray
Expand Down Expand Up @@ -455,7 +455,7 @@ input, textarea, select {
padding: 0 0 0.5em 0;
border-bottom: 1px dashed #aaa;
}
.page-title, .post-title {
.page-title, .entry-title {
font-weight: bold;
font-family: 'Bitter', Georgia, Arial, Tahoma;
color: #004488;
Expand All @@ -467,15 +467,15 @@ input, textarea, select {
font-size: 2.3em;
padding: 0.1em 0;
}
.post-title {
.entry-title {
font-size: 1.5em;
padding: 0.3em 0;
}
.post-title a:link, .post-title a:visited {
.entry-title a:link, .entry-title a:visited {
color: #004488;
text-decoration: none;
}
.post-title a:hover, .post-title a:active{
.entry-title a:hover, .entry-title a:active{
color: #333;
text-decoration: underline;
}
Expand Down Expand Up @@ -1213,7 +1213,7 @@ embed, iframe, object, video {
.widget-category-posts .more-link:hover, .widget-category-posts .more-link:active {
text-decoration: none;
}
.widget-category-posts .big-post .post-title {
.widget-category-posts .big-post .entry-title {
font-size: 1.35em;
}
.widget-category-posts .big-post .wp-post-image {
Expand All @@ -1235,7 +1235,7 @@ embed, iframe, object, video {
.widget-category-posts .small-post .small-post-content {
padding: 0.4em 0.8em;
}
.widget-category-posts .small-post .post-title {
.widget-category-posts .small-post .entry-title {
border: none;
margin: 0 0 0.3em;
padding: 0;
Expand Down Expand Up @@ -1395,10 +1395,10 @@ embed, iframe, object, video {
margin: 0.4em 0 0 0;
font-size: 1.2em;
}
.widget-category-posts .type-post .post-title {
.widget-category-posts .type-post .entry-title {
font-size: 1.2em;
}
.widget-category-posts .small-post .post-title{
.widget-category-posts .small-post .entry-title{
font-size: 1.05em;
}
}
Expand Down Expand Up @@ -1599,10 +1599,10 @@ embed, iframe, object, video {
font-size: 16px;
}

.widget-category-posts .type-post .post-title {
.widget-category-posts .type-post .entry-title {
font-size: 1.4em;
}
.widget-category-posts .small-post .post-title{
.widget-category-posts .small-post .entry-title{
font-size: 1.1em;
}
}
Expand Down Expand Up @@ -1703,10 +1703,10 @@ embed, iframe, object, video {
.entry tr td {
padding: 0.2em 0.4em;
}
.widget-category-posts .type-post .post-title {
.widget-category-posts .type-post .entry-title {
font-size: 1.2em;
}
.widget-category-posts .small-post .post-title{
.widget-category-posts .small-post .entry-title{
font-size: 1.0em;
}

Expand Down Expand Up @@ -1786,7 +1786,7 @@ embed, iframe, object, video {
.page-title {
font-size: 2.0em;
}
.post-title {
.entry-title {
font-size: 1.4em;
}

Expand Down Expand Up @@ -1843,10 +1843,10 @@ embed, iframe, object, video {
.postmeta span, .postinfo span {
display: block;
}
.widget-category-posts .type-post .post-title {
.widget-category-posts .type-post .entry-title {
font-size: 1.0em;
}
.widget-category-posts .small-post .post-title{
.widget-category-posts .small-post .entry-title{
font-size: 0.9em;
}
}
Expand Down

0 comments on commit 9cf5fae

Please sign in to comment.