text 在博客文章摘录后,使用按钮样式手动注入“阅读更多”链接。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 在博客文章摘录后,使用按钮样式手动注入“阅读更多”链接。相关的知识,希望对你有一定的参考价值。

Small Button

<div class="sqs-block button-block sqs-block-button BlogList-item-excerpt"><div class="sqs-block-content">
<div class="sqs-block-button-container--center" data-alignment="center" data-button-size="small">
	<a href="{permalink}" class="sqs-block-button-element--small sqs-block-button-element" data-initialized="true">Read More</a>
</div></div></div>


-----------
Under Design > Style Editor > Blog: List > Read More Link, choose Hide to hide the default Read More link.
Navigate to Blog page.
Copy the code above and paste into Settings > Advanced > Post Blog Item Code Injection to get a Read More Link.

Notes:
The class "BlogList-item-excerpt" is used to keep the Read More link under the excerpt.
The other classes and data attributes were copied directly from the buttons in Brine (though should work with most templates).
Replace "small" with "medium" for medium buttons and "large" for large buttons.

以上是关于text 在博客文章摘录后,使用按钮样式手动注入“阅读更多”链接。的主要内容,如果未能解决你的问题,请参考以下文章