关于主题Weisay Simple文章编辑中序号式列表失效的问题解决方案

前几天在建立昼夜求知页面时候发现了主题Weisay Simple的非序号式列表及序号式列表都会失效。

经过各种测试和3c学院的CSS临时学习。。。
在Weisay Simple: 样式表 (style.css)中查找以下代码:

.article li{list-style:none}

并替换为


/*以下为修正主题页面有序式列表代码*/
 .article2 ul {
 list-style-type:square;
 margin-left:20px;
 }
 .article2 ul li {
 list-style-type:square;
 margin-left:20px;
 }
 .article2 ol{
 margin-left:20px;
 }
 .article2 ol li {
 list-style-type:decimal;
 margin-left:20px;
 line-height:22px
 }

 

然后在Weisay Simple: 页面模板 (page.php)找到

</span>

<span class="tag"><</span><span class="tag-name">div</span> <span class="attribute">class</span>=<span class="attribute-value">"article article_page"</span><span class="tag">></span>
 <span class="tag"><</span><span class="tag-name">div</span> <span class="attribute">class</span>=<span class="attribute-value">"context"</span><span class="tag">></span><span class="tag"><?</span><span class="tag-name">php</span> the_content('Read more...'); <span class="tag">?></span><span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span>
 <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span>

</div>

修改为

</span></div>
<div class="dp-highlighter"><span class="tag"><</span><span class="tag-name">div</span> <span class="attribute">class</span>=<span class="attribute-value">"article2 article_page"</span><span class="tag">></span>
 <span class="tag"><</span><span class="tag-name">div</span> <span class="attribute">class</span>=<span class="attribute-value">"context"</span><span class="tag">></span><span class="tag"><?</span><span class="tag-name">php</span> the_content('Read more...'); <span class="tag">?></span><span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span>
 <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span></div>

至此就解决了主题Weisay Simple页面中不能使用序号式列表的问题。

但是要想在文章中使用序号式列表还需要在样式表 (style.css)中将

.context ol{margin-left:20px}
 .context ol li{line-height:22px}

替换为

/*以下为修正主题文章中序号式列表代码*/
 .context ul {
 list-style-type:square;
 margin-left:20px;
 }
 .context ul li {
 list-style-type:square;
 margin-left:20px;
 }
 .context ol{
 margin-left:20px;
 }
 .context ol li {
 list-style-type:decimal;
 margin-left:20px;
 line-height:22px
 }

至此一切都解决了,嘎嘎。