关于zblog主页只显示摘要的信息
- ZBLOG
- 2022-12-19 02:41:39
- 11
今天给各位分享zblog主页只显示摘要的知识,其中也会对进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!
本文目录一览:
- 1、wordpress中如何让首页的文章只显示摘要?
- 2、ZBLOG发表文章的时候,那个下面的自动生成摘要我没选他 他自动在那 咋办 、
- 3、如何让ZBLOG主页完全显示置顶文章
- 4、ZBLOG置顶怎样显示摘要?
- 5、如何让ZBLOG 在首页和翻页的时候只显示顶置的文章呢,而且要文章显示的是全文而不是摘要谢谢
- 6、如何让新浪博客文章只显示摘要??
wordpress中如何让首页的文章只显示摘要?
到wordpress后台,依次选择 外观--编辑--选择右边的index.php文件,在里面可以看到语句
?php while ( have_posts() ) : the_post(); ?
?php get_template_part( 'content', get_post_format() ); ?
?php endwhile; ?
可以看出,index.php是嵌套一个 content.php 的文件用于专门显示文章的内容,这就是为什么在首页老是显示文章全文。那么,打开content.php文件找到
?php
the_content( __( 'Continue reading span→/span', 'twentyeleven' ) );
?
将它修改为
?php if(!is_single()) {
the_excerpt();
} else {
the_content(__('(more…)'));
} ?
保存,就显示摘要了。
ZBLOG发表文章的时候,那个下面的自动生成摘要我没选他 他自动在那 咋办 、
您可以不用理会这项功能,没什么太大的功能影响
您点击的话会在博客首页 文章分类页 显示的是内容是文章摘要
您不点击的话会在博客首页 文章分类页 显示的是内容是文章整篇内容
如何让ZBLOG主页完全显示置顶文章
打开ZBLOG后台,编辑你的
置顶
文章,把“正文”的内容复制到下方的“摘要”里,提交即可显示全文
照牛排
ZBLOG置顶怎样显示摘要?
找到自己机器上备份的Z-Blog文件夹,打开LANGUAGE目录下的SimpChinese.asp文件,找到所有消息的定义,在打开模板中的b_article-istop.html文件,把原来的东西统统删除,自己按照默认的样式写出一样样式代码,代码如下:
div class="post cate#article/category/id# auth#article/author/id#"
h5 class="post-date"#article/posttime/longdate# /h5
h2 class="post-title"[#ZC_MSG051#]a href="#article/url#"#article/title#/a/h2
div class="post-body"#article/intro#/div
h5 class="post-tags"#ZC_MSG138# : #template:article_tag#/a/h5
h6 class="post-footer"
#ZC_MSG011#:#article/author/name#
|#ZC_MSG012#:#article/category/name#
|#ZC_MSG013#:#article/commnums#
|#ZC_MSG014#:#article/trackbacknums#
|#ZC_MSG130#:span id="spn#article/id#"/span
script language="JavaScript" type="text/javascript"strBatchView+="spn#article/id#=#article/id#,"/script
br/
/h6
/div
div class="post cate#article/category/id# auth#article/author/id#" h5 class="post-date"#article/posttime/longdate# /h5 h2 class="post-title"[#ZC_MSG051#]a href="#article/url#"#article/title#/a/h2 div class="post-body"#article/intro#/div h5 class="post-tags"#ZC_MSG138# : #template:article_tag#/a/h5 h6 class="post-footer" #ZC_MSG011#:#article/author/name# |#ZC_MSG012#:#article/category/name# |#ZC_MSG013#:#article/commnums# |#ZC_MSG014#:#article/trackbacknums# |#ZC_MSG130#:span id="spn#article/id#"/span script language="JavaScript" type="text/javascript"strBatchView+="spn#article/id#=#article/id#,"/script br/ /h6/div
如何让ZBLOG 在首页和翻页的时候只显示顶置的文章呢,而且要文章显示的是全文而不是摘要谢谢
要显示全文而不是摘要,可在编辑文章时,在摘要那里贴上全文就行了
如何让新浪博客文章只显示摘要??
页面设置,博文的位置后面有“设置”和“隐藏”两个,点设置,显示方式选择摘要
关于zblog主页只显示摘要和的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。
本文由admin于2022-12-19发表在靑年PHP官网,如有疑问,请联系我们。
本文链接:https://www.qnphp.com/post/27799.html