Skip to content

WordPress Theme graphene footer

WordPress Theme graphene

footer Customize

外観→テーマ編集→テンプレートのフッターをカスタマイズ
(検索などで「Powered」を検索すればその場所が出るはず)

——–
Default

<p>
<?php /* translators: %1$s is the link to WordPress.org, %2$s is the theme’s name */ ?>
<?php printf( __(‘Powered by %1$s and the %2$s.’, ‘graphene’), ‘<a href=”http://www.wordpress.org/”>WordPress</a>’, ‘<a href=”http://www.khairul-syahir.com/wordpress-dev/graphene-theme”>’ . __(‘Graphene Theme’, ‘graphene’) . ‘</a>’); ?>
</p>

——–
After

<p>
<?php /* translators: %1$s is the link to WordPress.org, %2$s is the theme’s name */ ?>
<?php printf( __(‘Produced by %1$s’), ‘<a href=”http://www.xxxxx.com/”>xxxxx,.inc.</a>’); ?>
</p>

——–

※xxxxxは、カスタマイズしたいリンク先と会社名など

注釈:
<?php /* translators: %1$s is the link to WordPress.org, %2$s is the theme’s name */ ?>
これで定義している。

%1$s is the link to WordPress.org
%2$s is the theme’s name

上記を活用することもできる。

後はその場の考え方と使い方。


%d人のブロガーが「いいね」をつけました。