0

看在上帝的份上,有人可以告诉我为什么这段代码在 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>

4

1 回答 1

1

本文解释了如何解决 Wordpress 在其编辑器中处理 HTML 的方式的常见问题:

http://smartypants.com/blogs/index.php/2012/08/06/a-fix-for-html-issues-with-the-wordpress-visual-editor/

本质上它解释了下载这个插件: http ://wordpress.org/extend/plugins/disable-wpautop/

并通过此“插件”将 Wordpress 的编辑器 TinyMCE 升级到其自身的高级版本: http ://www.laptoptips.ca/projects/tinymce-advanced/

干杯

于 2013-02-23T04:18:31.407 回答