Q.トップページ4を使わないので削除したいです。
A.下記のPHPファイルの該当箇所を削除してください
編集するファイル: Welcome Screen 固定ページテンプレート (page-welcome.php)
<section> <div class="amore-divider romaji" data-parallax="scroll" data-speed="0.6" data-image-src="<?php echo $options['bg_image3']; ?>"> <div class="container"> <div class="row"> <div class="col-xs-120 no-padding"> <h2 class="invisibletexteffect animate offsetted top-headline fourth_headline"><?php echo $options['fourth_headline'];?></h2> </div> </div> </div> </div> <div id="fourth" class="container"> <div class="row"> <div class="col-xs-120 no-padding amore-section"> <h3 class="lead romaji top-headline2 mb50"><?php echo $options['fourth_headline2'];?></h3> <div class="row"> <?php if($options['fourth_cate']): ?> <?php $cat_id = $options['fourth_cate']; $the_query = new WP_Query("post_type=post&posts_per_page=6&orderby=date&order=DESC&cat=".$cat_id); ?> <?php else: ?> <?php $the_query = new WP_Query("post_type=post&posts_per_page=6&orderby=date&order=DESC"); ?> <?php endif; ?> <?php if ( $the_query->have_posts() ) : ?> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <div class="col-sm-60"> <div class="row" style="margin-bottom:70px;"> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class='col-xs-30' style='padding-right:0px'> <a href="<?php the_permalink() ?>"><div class="thumb blog-list-thumb"><?php if ( has_post_thumbnail()) { the_post_thumbnail('size3'); } else { echo '<img src="'; bloginfo('template_url'); echo '/img/common/no_image1.gif" alt="" title="">'; }; ?></div></a> </div> <div class='col-xs-90'> <?php if ($options['show_date']) { echo "<span class='fa fa-clock-o'></span><span class='timestamp romaji'> " . get_the_date('Y') . '.' . get_the_date('m') . '.' . get_post_time('j') . "</span> ";}; ?> <h4 class='list-title'><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4> <p class="list-body"><a href="<?php the_permalink() ?>"><?php if(has_excerpt()){ the_excerpt(); }else{ new_excerpt(40); }; ?></a></p> </div> </article><!-- #post-## --> </div> </div> <?php $counter++; if ($counter % 2 == 0) { echo '</div><div class="row">'; } ?> <?php endwhile; ?> <?php endif; ?> </div> </div> </div> </div> </section>
この記事は役に立ちましたか?
もし参考になりましたら、下のボタンで教えてください。
今後の記事作成の参考とさせて頂きます!