对于上帝的爱,有人可以告诉我为什么这段代码在WP页面编辑器中被剥离了。我根本无法切换到视觉效果。我必须始终保持HTML格式。如果我不这样做,WordPress会继续删除代码。发生了什么事?
</div>
<div class="art-layout-cell layout-item-4" style="width: 68%">
<div style="font-size:0">
<div id="bc9d86d7ebcb478ea75fec22a82fc804" style="position: relative; display: inline-block; z-index: 0; margin: 0px; border-width: 0px; " class="art-collage">
<div class="art-slider art-slidecontainerbc9d86d7ebcb478ea75fec22a82fc804">
<div class="art-slider-inner">
<div class="art-slide-item art-slidebc9d86d7ebcb478ea75fec22a82fc8040"></div>
<div class="art-slide-item art-slidebc9d86d7ebcb478ea75fec22a82fc8041"></div>
<div class="art-slide-item art-slidebc9d86d7ebcb478ea75fec22a82fc8042"></div>
</div>
</div>
<div class="art-slidenavigator art-slidenavigatorbc9d86d7ebcb478ea75fec22a82fc804">
<a href="#" class="art-slidenavigatoritem"></a>
<a href="#" class="art-slidenavigatoritem"></a>
<a href="#" class="art-slidenavigatoritem"></a>
</div>
</div>
</div>
</div>
答案 0 :(得分:1)
本文解释了如何解决Wordpress在其编辑器中处理HTML的方式的常见问题:
基本上它解释了下载这个插件: http://wordpress.org/extend/plugins/disable-wpautop/
通过这个“插件”将Wordpress的编辑器TinyMCE升级为自己的高级版本: http://www.laptoptips.ca/projects/tinymce-advanced/
干杯