wordpress
2015-12-01 78 views 1 likes 
1

我有模板文件的wordpress插件。這個文件有功能在wordpress中更改插件模板

function parse_smart_content_func($atts, $content){ 
... 
$html .= '<div class="smart-box-content">'; 
      if($layout!='medium_carousel_2'){ 
       $html .= '<div class="smart-item '.$class_cssit.'"> 
        <div class="row">'; 
      } 
.... 

我想改變這個功能。但是,如果我更新插件,我會丟失我的代碼。 我該如何解決這個問題?

+0

叉插件? – rnevius

回答

1

嘗試從主題中的插件複製模板文件。我們主題中的版本應該覆蓋插件中的版本。 要懂得名字,用這個圖的WordPress主題:

http://codex.wordpress.org/User:Fpp

相關問題