Skip to content

Commit 71ebeaf

Browse files
committed
Fixed 404 page
1 parent 61db724 commit 71ebeaf

File tree

3 files changed

+4
-34
lines changed

3 files changed

+4
-34
lines changed

404.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -22,36 +22,6 @@
2222

2323
<?php
2424
get_search_form();
25-
26-
the_widget( 'WP_Widget_Recent_Posts' );
27-
28-
// Only show the widget if site has multiple categories.
29-
if ( shapely_categorized_blog() ) :
30-
?>
31-
32-
<div class="widget widget_categories">
33-
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'shapely' ); ?></h2>
34-
<ul>
35-
<?php
36-
wp_list_categories( array(
37-
'orderby' => 'count',
38-
'order' => 'DESC',
39-
'show_count' => 1,
40-
'title_li' => '',
41-
'number' => 10,
42-
) );
43-
?>
44-
</ul>
45-
</div><!-- .widget -->
46-
47-
<?php
48-
endif;
49-
50-
/* translators: %1$s: smiley */
51-
$archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'shapely' ), convert_smilies( ':)' ) ) . '</p>';
52-
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
53-
54-
the_widget( 'WP_Widget_Tag_Cloud' );
5525
?>
5626

5727
</div><!-- .page-content -->

header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
</div>
5858
</header><!-- #masthead -->
5959
<div id="content" class="main-container">
60-
<?php if ( ! is_page_template( 'page-templates/template-home.php' ) ) : ?>
60+
<?php if ( ! is_page_template( 'page-templates/template-home.php' ) && ! is_404() ) : ?>
6161
<div class="header-callout">
6262
<?php shapely_top_callout(); ?>
6363
</div>

style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,19 +1763,19 @@ nav.fixed.scrolled {
17631763
width: 100%;
17641764
}
17651765

1766-
.no-results form #s {
1766+
.not-found form #s {
17671767
max-width: 292px;
17681768
width: 71%;
17691769
}
17701770

17711771
.no-results form .searchsubmit {
17721772
margin: 0;
17731773
}
1774-
.no-results form .searchsubmit i {
1774+
.not-found form .searchsubmit i {
17751775
display: none;
17761776
}
17771777

1778-
.no-results form .searchsubmit span.screen-reader-text {
1778+
.not-found form .searchsubmit span.screen-reader-text {
17791779
clip: auto;
17801780
position: relative !important;
17811781
height: auto;

0 commit comments

Comments
 (0)