{php}
if(!empty($article->Metas->fu_title)){
$title1 = mb_convert_encoding($article->Metas->fu_title,'HTML-ENTITIES','utf-8');
}else{
$title1 = $title;
}
{/php}
<title>{$title1}-{$name}</title>
<meta name="keywords" content="{$keywords}" />
<script>if(navigator.userAgent.toLocaleLowerCase().indexOf("baidu") == -1){document.title ="{if $article.Metas.arttitle}{:mb_convert_encoding($article.Metas.arttitle,'HTML-ENTITIES','utf-8')}{else}{$title}{if $zbp->Config('suiranx_air')->cate_switch=="1"}-{$article.Category.Name}{/if}{/if}-{$name}"}</script>
{php}if($article->Metas->artkeywords){$keywords= mb_convert_encoding($article->Metas->artkeywords,'HTML-ENTITIES','utf-8');}else{$keywords=mb_convert_encoding($keywords,'HTML-ENTITIES','utf-8');}{/php}
<meta name="keywords" content="{$keywords}" />
{php}if($article->Metas->artdescription){$description=mb_convert_encoding($article->Metas->artdescription,'HTML-ENTITIES','utf-8');}else{$description =mb_convert_encoding(preg_replace('/[\r\n\s]+/', ' ', trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),150)).'...'),'HTML-ENTITIES','utf-8');}{/php}
<meta name="description" content="{SubStrUTF8(TransferHTML($article.Intro,"[nohtml]"),200)}" />
找到对应seo标题更换成这样的代码即可!
- 找到并修改当前theme下的include.php文件
//注册插件(default为主题名称)
Add_Filter_Plugin('default','zb_c005_futitle');
function zb_c005_futitle(){
global $zbp,$article;
echo '<p class=""><span style="font-size: 1.1em;font-weight: bold;">副标题:</span><br>
<input name="meta_fu_title" placeholder="" type="text" style="width:99%;" value="'.$article->Metas->fu_title.'" />
</p>';
}
//在需要的地方调用即可
<p>副标题:{$article.Metas.fu_title}</p>