カテゴリーページを1カラムにする方法

▼子テーマに『category.php』を作成する▼以下のコードをコピペ

<?php get_header(); ?>
<div id=”content”>
<div id=”inner-content” class=”wrap page-full wide cf”>
<main id=”main” class=”m-all t-all d-5of7 cf” role=”main”>
<div class=”archivettl”>
<h1 class=”archive-title h2″>
<span class=”gf”><?php _e( ‘CATEGORY’, ‘moaretrotheme’ ); ?></span>
「<?php single_cat_title(); ?>」
</h1>
</div>
<?php if (category_description() && !is_paged()) : ?>
<div class=”taxonomy-description entry-content”><?php echo category_description(); ?></div>
<?php endif; ?><?php
$toplayout = get_option(‘opencage_archivelayout’);
$toplayoutsp = get_option(‘opencage_sp_archivelayout’);
?>
<?php if (is_mobile()) :?>
<?php if ( $toplayoutsp == “toplayout-big” ) : ?>
<?php get_template_part( ‘parts_archive_big’ ); ?>
<?php elseif ( $toplayoutsp == ‘toplayout-card’ ) : ?>
<?php get_template_part( ‘parts_archive_card’ ); ?>
<?php elseif ( $toplayoutsp == ‘toplayout-magazine’ ) : ?>
<?php get_template_part( ‘parts_archive_magazine’ ); ?>
<?php else : ?>
<?php get_template_part( ‘parts_archive_simple’ ); ?>
<?php endif;?>
<?php else : ?>
<?php if ( $toplayout == “toplayout-big” ) : ?>
<?php get_template_part( ‘parts_archive_big’ ); ?>
<?php elseif ( $toplayout == ‘toplayout-card’ ) : ?>
<?php get_template_part( ‘parts_archive_card’ ); ?>
<?php elseif ( $toplayout == ‘toplayout-magazine’ ) : ?>
<?php get_template_part( ‘parts_archive_magazine’ ); ?>
<?php else : ?>
<?php get_template_part( ‘parts_archive_simple’ ); ?>
<?php endif;?>
<?php endif;?>
<?php pagination(); ?>
</main>
</div>
</div>
</div>
<?php get_footer(); ?>