サポート » 使い方全般 » footerの場所について

  • 解決済 WP_manabu

    (@wp_manabu)


    footerに書いた記述を変更したいのですが、当該ファイルの場所を、なかなか見つけることが出来ません。
    (ページの一番下のCopyrightの記述を変更したいと存じます)

    # Twenty Seventeenを利用。子テーマを作成しています。

    アドバイスのほど、よろしくお願い申し上げます。

    ヘルプの必要なページ: [リンクを見るにはログイン]

7件の返信を表示中 - 1 - 7件目 (全7件中)
  • こんにちは
    /テーマ/template-parts/footer/site-info.php
    ではないでしょうか。

    トピック投稿者 WP_manabu

    (@wp_manabu)

    ご回答ありがとうございます。

    ぼくも、そう思っていたのですが…お教えいただいたパスにあるファイルには、以下のコードが書かれているだけで、footerに記述した文字は見当たらないのです。

    <?php
    /**
     * Displays footer site info
     *
     * @package WordPress
     * @subpackage Twenty_Seventeen
     * @since Twenty Seventeen 1.0
     * @version 1.0
     */
    
    ?>
    <div class="site-info">
    	<?php
    	if ( function_exists( 'the_privacy_policy_link' ) ) {
    		the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
    	}
    	?>
    	<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyseventeen' ) ); ?>" class="imprint">
    		<?php
    			/* translators: %s: WordPress */
    		printf( __( 'Proudly powered by %s', 'twentyseventeen' ), 'WordPress' );
    		?>
    	</a>
    </div><!-- .site-info -->

    footer.php はどのようなコードになっていますか?

    トピック投稿者 WP_manabu

    (@wp_manabu)

    お手数をおかけしています。その、ご指摘のfooter.phpの場所が見つからない状態であります(Sakuraのサーバーを使っていて、同コントロールパネルにて「検索」しています。「検索」の方法がマヅいのかもしれませんが..)

    トピック投稿者 WP_manabu

    (@wp_manabu)

    失礼しました。見つかりました。以下の通りです。

    <?php
    /**
    * The template for displaying the footer
    *
    * Contains the closing of the #content div and all content after.
    *
    * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
    *
    * @package WordPress
    * @subpackage Twenty_Seventeen
    * @since Twenty Seventeen 1.0
    * @version 1.2
    */

    ?>

    </div><!– #content –>

    <footer id=”colophon” class=”site-footer”>
    <div class=”wrap”>
    <?php
    get_template_part( ‘template-parts/footer/footer’, ‘widgets’ );

    if ( has_nav_menu( ‘social’ ) ) :
    ?>
    <nav class=”social-navigation” aria-label=”<?php esc_attr_e( ‘Footer Social Links Menu’, ‘twentyseventeen’ ); ?>”>
    <?php
    wp_nav_menu(
    array(
    ‘theme_location’ => ‘social’,
    ‘menu_class’ => ‘social-links-menu’,
    ‘depth’ => 1,
    ‘link_before’ => ‘<span class=”screen-reader-text”>’,
    ‘link_after’ => ‘</span>’ . twentyseventeen_get_svg( array( ‘icon’ => ‘chain’ ) ),
    )
    );
    ?>
    </nav><!– .social-navigation –>
    <?php
    endif;

    get_template_part( ‘template-parts/footer/site’, ‘info’ );
    ?>
    </div><!– .wrap –>
    </footer><!– #colophon –>
    </div><!– .site-content-contain –>
    </div><!– #page –>
    <?php wp_footer(); ?>

    </body>
    </html>

    以前のトピックで、

    wp-content > Theme > twentyseventy-child > footer > site-info.php

    の中の記述を書き換えることにより、目標がクリアになりました。

    と書かれていますが……

    トピック投稿者 WP_manabu

    (@wp_manabu)

    ご指摘の1年前の自分の質問もチェックしていたのですけれど…再度、チェックしたところ、当該の記述を見つけることが出来ました。お騒がせしました。ありがとうございました。

7件の返信を表示中 - 1 - 7件目 (全7件中)
  • トピック「footerの場所について」には新たに返信することはできません。