TCDテーマBIRTH:iPhoneの電話機能の設定方法

Q.iPhoneで「お問合せはこちら」のバナーの電話番号を押すと電話がかかるようにするにはどうしたら良いでしょうか?

A.下記の方法でカスタマイズください。

iPhoneでの電話機能につきましては下記のようにご設定ください。

編集ファイル:
template-parts/footer_contact.php

編集箇所:

   <?php if( $options['show_footer_tel'] == 1 ) { ?>
   <div class="footer_contact_content" id="footer_tel">
    <div class="clearfix">
     <?php if($options['footer_tel_headline']) { ?>
     <p class="headline"><?php echo nl2br(wp_kses_post($options['footer_tel_headline'])); ?></p>
     <?php }; ?>
     <div class="right_area">
      <?php if($options['footer_tel_number']) { ?>
		 <p class="number"><span>TEL.</span><?php echo esc_html($options['footer_tel_number']); ?></p>
      <?php }; ?>
      <?php if($options['footer_tel_time']) { ?>
      <p class="time"><?php echo nl2br(wp_kses_post($options['footer_tel_time'])); ?></p>
      <?php }; ?>

↓↓↓

<?php if( $options['show_footer_tel'] == 1 ) { ?>
   <div class="footer_contact_content" id="footer_tel">
    <div class="clearfix">
     <?php if($options['footer_tel_headline']) { ?>
     <p class="headline"><?php echo
nl2br(wp_kses_post($options['footer_tel_headline'])); ?></p>
     <?php }; ?>
     <div class="right_area">
      <?php if($options['footer_tel_number']) { ?>
         <p class="number"><span>TEL.</span><a
href="tel:09012345678"><?php echo
esc_html($options['footer_tel_number']); ?></a></p>
      <?php }; ?>
      <?php if($options['footer_tel_time']) { ?>
      <p class="time"><?php echo
nl2br(wp_kses_post($options['footer_tel_time'])); ?></p>
      <?php }; ?>

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

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

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