簡體   English   中英

Wordpress Tesseract主題頁腳版權

[英]Wordpress Tesseract theme footer copyright

我使用Wordpress Tesseract主題建立了一個網站,我想更改版權。 我使用“查找並替換”插件制作而成,但我想通過更改代碼來正確地做到這一點。 我搜索了它,發現代碼必須在functions.php文件中更改。 但是我不理解代碼,我不確定是否只要更改“版權”就可以了,所以我需要一些幫助。

函數tesseract_footer_branding_output(){

//$str_foobclass = str_rot13(implode('',array('q','r','f','v','t','a','r','e')));
$str_foobclass = 'designer';

//$str_foobid = str_rot13(implode('',array('s','b','b','g','r','e','-','o','n','a','a','r','e','-','e','v','t','u','g')));
$str_foobid = 'footer-banner-right';

//$str_foobtby = str_rot13(implode('',array('G','u','r','z','r',' ','o','l',' ','%','f')));
$str_foobtby = 'Theme by %s';

//$str_foobturl = str_rot13(implode('',array('g','r','f','f','r','e','n','p','g','g','u','r','z','r','.','p','b','z')));
$str_foobturl = 'tesseracttheme.com';

//$str_foobtdis = str_rot13(implode('',array('G','r','f','f','r','e','n','p','g')));
$str_foobtdis = 'Tesseract';

echo '<div id="'.$str_foobid.'" class="'.$str_foobclass.'"><div class="table"><div class="table'.'-cell"><strong>';


/*if(stristr(__( $str_foobtby, 'tesseract' ),'%s') === false){

    echo '<a href="http://'.$str_foobturl.'">'.sprintf( __( $str_foobtby, 'tesseract' ),$str_foobtdis).'</a>';

}else{

    // if changes in language file
    echo '<a href="http://'.$str_foobturl.'">'.sprintf( $str_foobtby,$str_foobtdis).'</a>';

}*/

if(stristr(__( 'Theme by %s', 'tesseract' ),'%s') === false){

    echo '<a href="https://'.$str_foobturl.'">'.sprintf( __( 'Theme by %s', 'tesseract' ),$str_foobtdis).'</a>';

}else{

    // if changes in language file
    echo '<a href="https://'.$str_foobturl.'">'.sprintf( 'Theme by %s',$str_foobtdis).'</a>';

}

functions.php代碼

如您所見,在屏幕快照中,也可以在796、799和802行中將“ Theme by%s”,“ tesseracttheme.com”,“ Tesseract”更改為“ Copyright 2017 myname”,這樣可以嗎?

我不理解數組的含義以及這些行究竟發生了什么。

您應該只需要更改在腳本頂部設置的變量的值即可滿足您的需要,因為這些都是在代碼中回顯的內容。 然而...

  1. 檢查以確保其符合您擁有此主題的許可證。
  2. 如果要更改主題的functions.php文件,請從中創建一個子主題 ,然后更改該子主題 ,否則,如果升級該主題,則可能會遇到問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM