我有一个wordpress网站,我编辑了一些页面,但我注意到wordpress编辑器没有在我的页面中放置换行符,为什么会这样?
我没有为这一开始发生任何改变。 这是它应该是什么样子:
但这是如何显示:
我正在寻找解决这个问题的方法,就像放一些<br/>
标签一样,但是我正在工作的内容很多,所以这样做有点烦人,任何小费?
感谢。
更新
Wordpress生成的HTML:
<div class="container">
<div class="tagline sixteen columns">
<h4 style="padding-bottom: 0;" class="page-title">História da cidade de Sorocaba
<p>conheça mais sobre a nossa cidade</p>
</h4>
</div>
<nav class="main sixteen columns">
<ul id="menu-main" class="clearfix sf-menu"><li id="menu-item-1846" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://vitorgusmao.com.br/"><span class="title">Home</span></a></li>
<li id="menu-item-1797" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://vitorgusmao.com.br/compromisso/"><span class="title">Compromisso</span></a></li>
<li id="menu-item-1821" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://vitorgusmao.com.br/blog_/"><span class="title">Blog</span></a></li>
<li id="menu-item-1796" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://vitorgusmao.com.br/sobre/"><span class="title">Sobre</span></a></li>
<li id="menu-item-1798" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://vitorgusmao.com.br/contato/"><span class="title">Contato</span></a></li>
</ul>
</nav>
<!-- Page Content -->
<div style="float: left;" class="container clearfix page-content">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ipsum ante, adipiscing eu pulvinar et, hendrerit eu tellus. Vivamus orci orci, lacinia in mollis eget, rutrum eget purus. Vestibulum luctus lobortis fermentum. Praesent tincidunt velit imperdiet massa tempus in sollicitudin lorem vulputate. Donec nibh urna, scelerisque ut feugiat sit amet, varius a felis. Donec hendrerit condimentum felis sed iaculis. Quisque volutpat, justo ut mattis tincidunt, nulla dolor pharetra nulla, non tincidunt tellus leo dictum nulla. Integer at enim vitae metus ultrices suscipit. Curabitur fringilla tellus id metus tristique ut convallis metus tincidunt. Nullam id eros ut ipsum iaculis tincidunt et in erat.
Etiam sed iaculis enim. Cras congue bibendum urna nec facilisis. Donec ultrices cursus congue. Suspendisse sed lectus ut nisi malesuada pellentesque ac a lorem. Maecenas eu ipsum arcu. Aliquam ultricies enim ac nulla pulvinar id porta lectus dictum. Fusce semper arcu at nisl blandit accumsan. Vivamus non turpis enim, eu tincidunt odio. Ut sodales molestie interdum. In hendrerit semper dui, eu accumsan odio placerat nec. Mauris ut interdum massa. Pellentesque venenatis, urna ut aliquet convallis, nibh neque faucibus elit, nec aliquet arcu tellus id dolor.
In mollis erat sed mauris mattis adipiscing. In vitae eros ac augue pulvinar ultricies in et ligula. Nulla vitae nisi nisi, at bibendum justo. Mauris pharetra vulputate sollicitudin. In et nisl mi. Sed eu vehicula massa. Morbi vehicula leo quis velit venenatis luctus. Phasellus rutrum mauris quis nisl fringilla pulvinar. Donec dui ipsum, blandit quis interdum consequat, luctus quis lacus. Nunc ac libero eget velit facilisis tincidunt at ut eros.
Mauris a dolor et augue interdum sodales. Ut nisl nibh, posuere luctus gravida ac, tristique vitae dolor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Morbi nibh quam, fermentum id vestibulum id, suscipit quis ipsum. Duis accumsan, dolor in tempor dictum, justo felis pharetra felis, a vehicula orci felis quis orci. Proin auctor dignissim mauris, quis fringilla metus sollicitudin id. Duis aliquam nisl ut tellus ultrices varius.
Nullam ut dui ut velit vestibulum gravida non nec lectus. Cras id lectus sit amet enim condimentum mattis. Donec eu sagittis dolor. Nam lobortis justo id lorem feugiat a cursus urna scelerisque. Aliquam facilisis ultricies leo non hendrerit. Proin magna diam, mattis vulputate mattis in, gravida vitae elit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;<div class="snap_nopreview sharing robots-nocontent"><ul><li class="sharing_label">Compartilhar isto:</li><li class="share-email share-regular"><a rel="nofollow" class="share-email share-icon" href="http://vitorgusmao.com.br/historia-da-cidade-de-sorocaba/?share=email" title="Click to email this to a friend">Email</a></li><li class="share-facebook share-regular"><a rel="nofollow" class="share-facebook share-icon" href="http://vitorgusmao.com.br/historia-da-cidade-de-sorocaba/?share=facebook" title="Share on Facebook">Facebook</a></li><li class="share-twitter share-regular"><div class="twitter_button"><iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fvitorgusmao.com.br%2Fhistoria-da-cidade-de-sorocaba%2F&counturl=http%3A%2F%2Fvitorgusmao.com.br%2Fhistoria-da-cidade-de-sorocaba%2F&count=horizontal&text=Hist%C3%B3ria%20da%20cidade%20de%20Sorocaba: " style="width:97px; height:20px;"></iframe></div></li><li class="share-google-plus-1 share-regular"><div class="googleplus1_button"><div class="g-plusone" data-size="medium" data-callback="sharing_plusone" data-href="http://vitorgusmao.com.br/historia-da-cidade-de-sorocaba/"></div></div></li><li class="share-custom"><a href="#" class="sharing-anchor">Share</a></li><li class="share-end"></li></ul><div class="sharing-hidden"><div class="inner" style="display: none;"><ul><li class="share-linkedin"><script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><div class="linkedin_button"><script type="in/share" data-url="http://vitorgusmao.com.br/historia-da-cidade-de-sorocaba/" data-counter="right"></script></div></li><li class="share-digg"><a rel="nofollow" class="share-digg share-icon" href="http://vitorgusmao.com.br/historia-da-cidade-de-sorocaba/?share=digg" title="Click to Digg this post">Digg</a></li><li class="share-end"></li><li class="share-reddit"><a rel="nofollow" class="share-reddit share-icon" href="http://vitorgusmao.com.br/historia-da-cidade-de-sorocaba/?share=reddit" title="Click to share on Reddit">Reddit</a></li><li class="share-stumbleupon"><a rel="nofollow" class="share-stumbleupon share-icon" href="http://vitorgusmao.com.br/historia-da-cidade-de-sorocaba/?share=stumbleupon" title="Click to share on StumbleUpon">StumbleUpon</a></li><li class="share-end"></li><li class="share-end"></li></ul></div></div><div class="sharing-clear"></div></div>
</div>
</div>
CSS代码为here
答案 0 :(得分:1)
您是说您将主题切换为二十二年并解决了问题吗?在这种情况下,主题中必须有一个函数禁用Wordpress换行符。
在主题的functions.php
中查看remove_filter ('the_content', 'wpautop');