romove useless 404 secondary

This commit is contained in:
Michel Roux 2024-12-14 10:55:56 +01:00
parent 0b0fb34c8b
commit 2a3800a536

16
404.php
View File

@ -26,20 +26,4 @@ get_header(); ?>
</div><!-- #content .site-content -->
</div><!-- #primary .content-area -->
<div id="not-found-secondary" class="widget-area" role="complementary">
<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>
<div class="widget">
<h2 class="widgettitle"><?php _e( 'Most Used Categories', 'superhero' ); ?></h2>
<ul>
<?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10 ) ); ?>
</ul>
</div><!-- .widget -->
<?php
/* translators: %1$s: smilie */
$archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'superhero' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
?>
</div><!-- #secondary .widget-area -->
<?php get_footer(); ?>