开发者在开发zblog主题的时候,会给首页/分类页/文章页/标签页等,都制定好调用侧边栏几。
zblog的侧边栏有1-5,我们可以根据后期使用的具体情况,更改主题模板调用的侧边栏。
zblog侧边栏怎么修改:
主题中默认每个页面调用的是 <#template:sidebar#>, 所以我们只需要在模板文件里default.html,catalog.html,page.html ,single.html 这四个文件里调用的侧栏标签(<#template:sidebar#> )弄成不一样的就行了。
比如说 首页default.html调用 <#template:sidebar#>, 分类页catalog.html调用 <#template:sidebar2#>, 文章页 single.html 调用 <#template:sidebar3#>, 独立页调用 <#template:sidebar4#>就可以实现每个页面不一样的侧栏了。
实际操作方法:
在ftp里面找到对应页面的文件,下载到电脑;
使用notepad等代码编辑软件打开代码文件;
使用ctrl+f搜索代码中的template:sidebar;
修改对应的侧边栏值。