Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含几篇文章的类别。我已经设置了菜单以将该类别显示为博客布局,并在此处关闭了 show readmore。
我还在每篇文章的最后添加了“readmore”div,以防止文章被缩短。
当显示类别页面时,两篇文章现在已完整显示,但我想在最后删除那个该死的“阅读更多”。感觉就像是在末尾添加了 readmore 的 hack。
这很简单......一旦禁用“阅读更多”,您就根本不需要<hr class="readmore" />在文章内容中使用。您还可以在文章管理器 > 首选项中取消设置阅读更多。
<hr class="readmore" />
如果这对您没有帮助,那么您可以尝试次要的 css hack。添加CSS样式。您可以将其添加到模板或文章本身(如果您要添加到文章,请确保您在全局配置中禁用了对超级管理员的过滤)
<style type="text/css"> .readmore { display: none; } </style>