サポートフォーラムにヒントが書かれていますね。
WordPress › Support » Footer option
テーマの inc/template-tags.php ファイルに書かれている関数 the_wp_footer() の中にあるそうです。ファイルの中を変更する前に「子テーマ」を設定してからどうぞ。
the_wp_footer 関数自体は上書き不可能なので子テーマのfooter.phpで
<?php
/**
* The template for displaying the footer.
*
*
* @package The WP Theme
*/
?>
<?php my_the_wp_footer(); ?>
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>
functions.php に
function my_the_wp_footer(){?>
</div><!-- #content -->
<footer id="colophon" class="site-footer" role="contentinfo">
<!--footer widgets-->
<div class="widgets">
<!-- Full width widget -->
<?php if ( is_active_sidebar( 'footer-full' ) ) : ?>
<div class="footer-full"><?php dynamic_sidebar( 'footer-full' ); ?></div>
<?php endif; ?>
<!-- Side by side widgets -->
<div class="wrap">
<?php if ( is_active_sidebar( 'footer-left' ) ) : ?>
<div class="footer-left"><?php dynamic_sidebar( 'footer-left' ); ?></div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-center' ) ) : ?>
<div class="footer-center"><?php dynamic_sidebar( 'footer-center' ); ?></div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-right' ) ) : ?>
<div class="footer-right"><?php dynamic_sidebar( 'footer-right' ); ?></div>
<?php endif; ?>
</div>
</div>
<!-- .... -->
<div class="site-info">
<?php printf( __( 'Proudly powered by <strong>%s</strong>', 'the-wp' ), 'WordPress' ); ?>
<span class="sep"> & </span>
<?php printf(
__( '%1$s by %2$s.', 'the-wp' ),
__('<strong>The WP</strong> Free WordPress Theme', 'the-wp'),
'<strong><a href="http://ceewp.com/">'.__('CeeWP', 'the-wp' ).'</a></strong>' ); ?>
</div><!-- .site-info -->
</footer><!-- #colophon -->
<div id="back_top"><i class="fa fa-angle-up"></i></div><?php
}
を追加して site-info の部分を変える感じですかね…
gblsmさま、Hinaloeさま、ご丁寧なご指導ありがとうございました。
早速、つたない知識と過去の経験をもとに子テーマを設定しました。その結果、該当の部分が綺麗に消えました。
次に、functions.php に必要な部分をお書きいただいたものを追加コピぺさせていただきましたところ、その段階で画面が真っ白になってしまいました。何か問題があるようですが、いくらコピペ部分を読み込んでもわかりません。
従って、直すこともできませんでした。
私の知識不足なのでしょうね。
申し訳ありません。
試しに手元で試してみましたが問題はありませんでした…
デバッグモードでエラーが出ていないか、functions.phpにPHPの開始タグなどが存在しているか、など確認してみてください。
サンプル: https://github.com/hinaloe/the-wp-child-sample
Hinaloe様
ご指摘の通り開始タグを忘れていたかもしれません。
素晴らしいご教授ありがとうございました。
サンプルは、完全でした。
ちょっと、このご親切に脱帽しています。
もっとも、ちょっと焦っていたのか、何か書き間違えて画面が真っ白になりました。
きちっと事前のテストをしたはずなのに、本番で間違えたみたいです。
本当にありがとうございました。