当前位置:首页 > ZBLOG > 正文

zblog主页只显示摘要的简单介绍

今天给各位分享zblog主页只显示摘要的知识,其中也会对进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!

本文目录一览:

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主页只显示摘要的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于、zblog主页只显示摘要的信息别忘了在本站进行查找喔。

取消
扫码支持 支付码