「TCD AWARD 2023」受賞サイトを発表しました。

ワードプレステーマ別

TCDテーマAGENT:トップページ6にあるカルーセルを非表示にする方法

Q.トップページ6のカルーセルを非表示にしたい

A.下記のphpファイルの該当箇所を削除してください

編集するファイル:Welcome Screen 固定ページテンプレート (page-welcome.php)
編集する箇所:

 <div class="section container-fluid" style="padding:0 40px 0 40px; margin-bottom:80px">
    <div class="row">
      <div id="carousel" class="carousel">
        <?php if($top_content6_banner_image1[0]){ ?><div class="col-xs-24"><?php if($options['top_content6_banner_url1']){ ?><a href="<?php echo $options['top_content6_banner_url1']; ?>"><?php }; ?><span class="carousel_images"><img src="<?php echo $top_content6_banner_image1[0]; ?>"></span><?php if($options['top_content6_banner_url1']){ ?></a><?php }; ?></div><?php }; ?>
        <?php if($top_content6_banner_image2[0]){ ?><div class="col-xs-24"><?php if($options['top_content6_banner_url2']){ ?><a href="<?php echo $options['top_content6_banner_url2']; ?>"><?php }; ?><span class="carousel_images"><img src="<?php echo $top_content6_banner_image2[0]; ?>"></span><?php if($options['top_content6_banner_url2']){ ?></a><?php }; ?></div><?php }; ?>
        <?php if($top_content6_banner_image3[0]){ ?><div class="col-xs-24"><?php if($options['top_content6_banner_url3']){ ?><a href="<?php echo $options['top_content6_banner_url3']; ?>"><?php }; ?><span class="carousel_images"><img src="<?php echo $top_content6_banner_image3[0]; ?>"></span><?php if($options['top_content6_banner_url3']){ ?></a><?php }; ?></div><?php }; ?>
        <?php if($top_content6_banner_image4[0]){ ?><div class="col-xs-24"><?php if($options['top_content6_banner_url4']){ ?><a href="<?php echo $options['top_content6_banner_url4']; ?>"><?php }; ?><span class="carousel_images"><img src="<?php echo $top_content6_banner_image4[0]; ?>"></span><?php if($options['top_content6_banner_url4']){ ?></a><?php }; ?></div><?php }; ?>
        <?php if($top_content6_banner_image5[0]){ ?><div class="col-xs-24"><?php if($options['top_content6_banner_url5']){ ?><a href="<?php echo $options['top_content6_banner_url5']; ?>"><?php }; ?><span class="carousel_images"><img src="<?php echo $top_content6_banner_image5[0]; ?>"></span><?php if($options['top_content6_banner_url5']){ ?></a><?php }; ?></div><?php }; ?>
      </div>
    </div>
  </div>

この記事は役に立ちましたか?

もし参考になりましたら、下のボタンで教えてください。
今後の記事作成の参考とさせて頂きます!

同じテーマのカスタマイズ記事