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

ワードプレステーマ別

TCDテーマAGENT:スタッフインタビューの3つを2つに減らす方法

Q.第5ブロックのスタッフインタビューの3つを2つに減らしたい

A.下記のPHPファイルの該当箇所を削除します

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

     
      <div class="col-sm-40 mobile-mb-40">
        <div class="text-left staff-interview">
         <?php if($options['top_content5_banner_url1']){ ;?><a href="<?php echo $options['top_content5_banner_url1']; ?>"><?php }; ?>
          <?php if($top_content5_banner_image1[0]){ ?><img class="full-width" style="border-radius:0; padding-bottom:15px" src="<?php echo $top_content5_banner_image1[0]; ?>"><?php }; ?>
          <p class="read_copy"><span style="color:#<?php echo $options['pickedcolor3']; ?>"><?php echo $options['top_content5_banner_headline1']; ?></span></p>
         <?php if($options['top_content5_banner_url1']): ?>
          <div class="text-left staff" style="background:#<?php echo $options['pickedcolor3']; ?>; color:white">
           <span class="department"><?php echo $options['top_content5_banner_btnlabel_sub1']; ?></span><br/>
           <span class="name"><?php echo $options['top_content5_banner_btnlabel1']; ?></span><span class="arrow_ico1"></span>
          </div>
        <?php endif; ?>
         <?php if($options['top_content5_banner_url1']){ ;?></a><?php }; ?>
        </div>
        <p class="text-left desc2"><?php echo $options['top_content5_banner_body1']; ?></p>
      </div>

      <div class="col-sm-40 mobile-mb-40">
        <div class="text-left staff-interview">
         <?php if($options['top_content5_banner_url2']){ ;?><a href="<?php echo $options['top_content5_banner_url2']; ?>"><?php }; ?>
          <?php if($top_content5_banner_image2[0]){ ?><img class="full-width" style="border-radius:0; padding-bottom:15px" src="<?php echo $top_content5_banner_image2[0]; ?>"><?php }; ?>
          <p class="read_copy"><span style="color:#<?php echo $options['pickedcolor4']; ?>"><?php echo $options['top_content5_banner_headline2']; ?></span></p>
           <?php if($options['top_content5_banner_url2']): ?>
          <div class="text-left staff" style="background:#<?php echo $options['pickedcolor4']; ?>; color:white">
           <span class="department"><?php echo $options['top_content5_banner_btnlabel_sub2']; ?></span><br/>
           <span class="name"><?php echo $options['top_content5_banner_btnlabel2']; ?></span><span class="arrow_ico1"></span>
          </div>
        <?php endif; ?>
         <?php if($options['top_content5_banner_url2']){ ;?></a><?php }; ?>
        </div>
        <p class="text-left desc2"><?php echo $options['top_content5_banner_body2']; ?></p>
      </div>

      <div class="col-sm-40">
        <div class="text-left staff-interview">
         <?php if($options['top_content5_banner_url3']){ ;?><a href="<?php echo $options['top_content5_banner_url3']; ?>"><?php }; ?>
          <?php if($top_content5_banner_image3[0]){ ?><img class="full-width" style="border-radius:0; padding-bottom:15px" src="<?php echo $top_content5_banner_image3[0]; ?>"><?php }; ?>
          <p class="read_copy"><span style="color:#<?php echo $options['pickedcolor5']; ?>"><?php echo $options['top_content5_banner_headline3']; ?></span></p>
           <?php if($options['top_content5_banner_url3']): ?>
          <div class="text-left staff" style="background:#<?php echo $options['pickedcolor5']; ?>; color:white">
           <span class="department"><?php echo $options['top_content5_banner_btnlabel_sub3']; ?></span><br/>
           <span class="name"><?php echo $options['top_content5_banner_btnlabel3']; ?></span><span class="arrow_ico1"></span>
          </div>
        <?php endif; ?>
         <?php if($options['top_content5_banner_url3']){ ;?></a><?php }; ?>
        </div>
        <p class="text-left desc2"><?php echo $options['top_content5_banner_body3']; ?></p>
      </div>

下記のかたまりを一つ削除または非表示にしてください。

    <div class="col-sm-40 mobile-mb-40">
        <div class="text-left staff-interview">
         <?php if($options['top_content5_banner_url2']){ ;?><a href="<?php echo $options['top_content5_banner_url2']; ?>"><?php }; ?>
          <?php if($top_content5_banner_image2[0]){ ?><img class="full-width" style="border-radius:0; padding-bottom:15px" src="<?php echo $top_content5_banner_image2[0]; ?>"><?php }; ?>
          <p class="read_copy"><span style="color:#<?php echo $options['pickedcolor4']; ?>"><?php echo $options['top_content5_banner_headline2']; ?></span></p>
           <?php if($options['top_content5_banner_url2']): ?>
          <div class="text-left staff" style="background:#<?php echo $options['pickedcolor4']; ?>; color:white">
           <span class="department"><?php echo $options['top_content5_banner_btnlabel_sub2']; ?></span><br/>
           <span class="name"><?php echo $options['top_content5_banner_btnlabel2']; ?></span><span class="arrow_ico1"></span>
          </div>
        <?php endif; ?>
         <?php if($options['top_content5_banner_url2']){ ;?></a><?php }; ?>
        </div>
        <p class="text-left desc2"><?php echo $options['top_content5_banner_body2']; ?></p>
      </div>

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

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

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