在Blogger中使用摘要摘要时更改阅读更多文字的问题 [英] Problems with changing read more text when using snippet summaries in Blogger
问题描述
我正在尝试更改Blogger中阅读更多按钮的文字。
我一直在代码中的任何地方搜索,或者它不存在。
I'm trying to change the text of the read more button in Blogger. I've been searching everywhere in the code for or but it doesn't exist.
但是这里是我发现:
But here's what I found:
<div class='mobile-index-arrow'>&rsaquo;</div>
<div class='mobile-index-contents'>
<b:if cond='data:post.thumbnailUrl'>
<div class='mobile-index-thumbnail'>
<div class='Image'>
<img expr:src='data:post.thumbnailUrl'/>
</div>
</div>
</b:if>
<div class='post-body'>
<b:if cond='data:post.snippet'><data:post.snippet/></b:if>
</div>
</div>
所以我想在这个snippet part添加一些东西,知道什么添加...
请,有没有人知道如何更改阅读更多的文本?感谢!
So I guess I have to add something to this "snippet part", but I don't really know what to add... Please, does anyone know how to change the read more text? Thanks!
推荐答案
方法1:
您可以在Blogger布局中更改阅读更多按钮中的文字。
You can change the text in read more button from Blogger Layout.
转到信息中心< >布局> 主> 编辑
方法2:
转到信息中心 模板> 编辑HTML
在帖子部分找到此代码p>
In post section find this code (below post-body part)
<b:if cond='data:post.hasJumpLink'>
<div class='jump-link'>
<a expr:href='data:post.url + "#more"' expr:title='data:post.title'><data:post.jumpText/></a>
</div>
</b:if>
替换< data:post.jumpText /> $ c阅读更多
Replace <data:post.jumpText/>
with whatever text you want to display in place of Read More
例如:
<b:if cond='data:post.hasJumpLink'>
<div class='jump-link'>
<a expr:href='data:post.url + "#more"' expr:title='data:post.title'>View Post</a>
</div>
</b:if>
方法3:
将< b:includable id ='post'var ='post'>
code>。
Method 3:
Add the this script at the end of <b:includable id='post' var='post'>
inside main section
.
<b:if cond='data:blog.pageType not in {"static_page","item"}'>
<script type='text/javascript'>
$("#summary<data:post.id/> .post-entry a.more-link").html("<data:post.jumpText/> <i class='fa fa-long-arrow-right'></i>");
</script>
</b:if>
使用此功能,您可以从信息中心更改阅读更多文本方法1 。
With this you can change Read More text from dashboard, as described in Method 1.
这篇关于在Blogger中使用摘要摘要时更改阅读更多文字的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!