• 解決済 kamiyatakuo

    (@kamiyatakuo)


    footerの文字、

    Proudly powered by WordPress & The WP Free WordPress Theme by CeeWP.

    を変更したいのですが、この記述がどこにあるのかがわかりません。
    通常の場所と違うような気がします。
    テーマのバックアップは、取っているのでそれらしきところを触ろうとも思いましたが
    まだ能力不足です。
    どなたかお教え願えれば幸いです。

    http://shop.gardenplant.org

    いじっているサイトは、上記です。

5件の返信を表示中 - 1 - 5件目 (全5件中)
  • サポートフォーラムにヒントが書かれていますね。
    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 の部分を変える感じですかね…

    トピック投稿者 kamiyatakuo

    (@kamiyatakuo)

    gblsmさま、Hinaloeさま、ご丁寧なご指導ありがとうございました。
    早速、つたない知識と過去の経験をもとに子テーマを設定しました。その結果、該当の部分が綺麗に消えました。

    次に、functions.php に必要な部分をお書きいただいたものを追加コピぺさせていただきましたところ、その段階で画面が真っ白になってしまいました。何か問題があるようですが、いくらコピペ部分を読み込んでもわかりません。
    従って、直すこともできませんでした。
    私の知識不足なのでしょうね。
    申し訳ありません。

    試しに手元で試してみましたが問題はありませんでした…

    デバッグモードでエラーが出ていないか、functions.phpにPHPの開始タグなどが存在しているか、など確認してみてください。

    サンプル: https://github.com/hinaloe/the-wp-child-sample

    トピック投稿者 kamiyatakuo

    (@kamiyatakuo)

    Hinaloe様
    ご指摘の通り開始タグを忘れていたかもしれません。
    素晴らしいご教授ありがとうございました。
    サンプルは、完全でした。
    ちょっと、このご親切に脱帽しています。

    もっとも、ちょっと焦っていたのか、何か書き間違えて画面が真っ白になりました。
    きちっと事前のテストをしたはずなのに、本番で間違えたみたいです。
    本当にありがとうございました。

5件の返信を表示中 - 1 - 5件目 (全5件中)

トピック「footerの文字を変更したい」には新たに返信することはできません。