在Blogger中使用摘要摘要时更改阅读更多文字的问题 [英] Problems with changing read more text when using snippet summaries in Blogger

查看:169
本文介绍了在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'>&amp;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 + &quot;#more&quot;' expr:title='data:post.title'><data:post.jumpText/></a>
       </div>
    </b:if>

替换< data:post.jumpText />

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 + &quot;#more&quot;' 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 {&quot;static_page&quot;,&quot;item&quot;}'>
        <script type='text/javascript'>
             $(&quot;#summary<data:post.id/> .post-entry a.more-link&quot;).html(&quot;<data:post.jumpText/> &lt;i class=&#39;fa fa-long-arrow-right&#39;&gt;&lt;/i&gt;&quot;);
        </script>
    </b:if>

使用此功能,您可以从信息中心更改阅读更多文本方法1

With this you can change Read More text from dashboard, as described in Method 1.

这篇关于在Blogger中使用摘要摘要时更改阅读更多文字的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆