• 欢迎访问爱玩吧
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏爱玩吧

【zblog】Z-blog 2.1主题与2.0的差别

建站资源 aiwanyule 8年前 (2016-05-11) 已收录

Z-blog 2.1主题与2.0的差别

程序升级到2.1后,发现原来的2.0主题有点不同了,这是为什么呢。下面我来介绍一下:

问题一:侧栏日历变得很窄,挤到一块了。

原因分析:2.1采用table表格的方式重新定义了日历,所以原来日历的css定义无效了。

解决办法:参照2.1主题,可以用下面这个替代旧的日历css(或者不删除旧的,加在后面也可以),再根据您的主题情况做一下修改,例如width的值

/*—————————–日历—————————–*/

#divCalendar{width:100%;padding:0 0 0 0;text-align:center;}

#divCalendar div{width:225px;margin:0 0 0 0;padding:5px 0 5px 5px;float:left;}

#divCalendar table{width:96%;padding:0 2% 0 2%;}

问题二、后台侧栏管理模块标题隐藏功能,但是隐藏无效。

原因分析:这是因为你的主题重新定义了侧栏模板,如果默认的话则无此问题。

解决办法:请打开TEMPLATE/b_function.html

将<h*><#function/name#></h*>这一行两边加上

<#template:function_title:begin#>  和  <#template:function_title:end#>

问题三、其他隐藏功能,需要两边加上代码

1、请打开TEMPLATE/b_article-single.html,两边加上红色部分

<#template:article_mutuality:begin#>

<ul class=”msg mutuality”>

<li class=”tbname”><#ZC_MSG231#>:</li>

<li class=”msgarticle”><#template:article_mutuality#></li>

</ul>

<#template:article_mutuality:end#>

<#template:article_comment:begin#>

<ul class=”msg msghead”>

<li class=”tbname”><#ZC_MSG211#>:</li>

</ul>

<#template:article_comment#>

<#template:article_comment_pagebar#>

<#template:article_comment:end#>

<#template:article_commentpost#>

2、请打开TEMPLATE/b_article-page.html,两边加上红色部分

<#template:article_comment:begin#>

<ul class=”msg msghead”>

<li class=”tbname”><#ZC_MSG211#>:</li>

</ul>

<#template:article_comment#>

<#template:article_comment_pagebar#>

<#template:article_comment:end#>

3、请打开TEMPLATE/b_article-multi.html 和 b_article-single.html,两边加上红色部分

<#template:article_tag:begin#><#ZC_MSG138#>: <span class=”tags”><#template:article_tag#></span><#template:article_tag:end#>

最后顺便提醒一下,使用多侧栏的需要重新调整侧栏,直接拖曳过去就可以了,不想用模块的拖出来就行。


爱玩吧 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:【zblog】Z-blog 2.1主题与2.0的差别
喜欢 (0)