因為後臺無法設定版本宣告字眼,特別找尋了一下檔案位置:/wp-content/themes/<span style="color:red">樣板名稱</span>/template-parts/footer/site-info.php
原本的語法
<div class="site-info">
<a href=" echo esc_url( __( 'https://wordpress.org/', 'twentyseventeen' ) ); "> printf( __( 'Proudly powered by %s', 'twentyseventeen' ), 'WordPress' ); </a>
</div>
複製修改為下方語法
<div class="site-info">
<a href=" echo esc_url( home_url( '/' ) ); " target="_self">© echo date("Y"); copyright bloginfo( 'name' ); All rights reserved</a>
</div>
說明:1.WordPress 位址(URL)=esc_url( home_url( '/' ) );2.網站標題=bloginfo( 'name' );3.年=date("Y");
留言
張貼留言