Skip to content

Commit

Permalink
melhorado o template de erro 404 atendendo a issue #11
Browse files Browse the repository at this point in the history
  • Loading branch information
diegorojas committed May 11, 2018
1 parent ee2a8d1 commit fee51e6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
21 changes: 4 additions & 17 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,9 @@

get_header(); ?>
<div id="content" class="site-content">

<div class="page-header">
<div class="container">
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'coletivo' ); ?></h1>
</div><!-- container -->
</div><!-- page-header -->

<div id="content-inside" class="container right-sidebar">
<div id="content-inside" class="container no-sidebar">
<h1 class="fullheader-title">404</h1>
<h2 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'coletivo' ); ?></h2>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">

Expand All @@ -39,19 +34,13 @@
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
'number' => 3,
) );
?>
</ul>
</div><!-- .widget -->
<?php endif; ?>

<?php
/* translators: %1$s: smiley */
$archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'coletivo' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
?>

<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>

</div><!-- .page-content -->
Expand All @@ -60,8 +49,6 @@
</main><!-- #main -->
</div><!-- #primary -->

<?php get_sidebar(); ?>

</div><!--#content-inside -->
</div><!-- #content -->

Expand Down
22 changes: 21 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,27 @@ input[type="radio"], input[type="checkbox"] {
text-transform: uppercase;
text-align: center;
}

.error404 h1.fullheader-title {
font-size: 8rem;
letter-spacing: 2px;
font-weight: 800;
position: relative;
padding-top: 40px;
text-transform: uppercase;
text-align: center;
}
.error404 h2.page-title {
font-size: 2rem;
letter-spacing: 1px;
position: relative;
padding-top: 20px;
text-transform: uppercase;
text-align: center;
}
.error404 .content-area {
text-align: center;
padding-top: 0px;
}
@media screen and (min-width: 940px) {
.left-sidebar .content-area {
float: right;
Expand Down

0 comments on commit fee51e6

Please sign in to comment.