0

BigCartel 设置的“previous”和“next”变量的默认文本如下所示:“ «Previous ”和“ Next» ”,如果代码是变量,我将如何将它们更改为我想让他们说的任何内容?(如下所示):

{% if paginate.previous.is_link or paginate.next.is_link %}
{{ paginate | default_pagination }}
{% endif %}
{% else %}
<p class="alert-noproducts">No products found.</p>
{% endif %}

{% endpaginate %}

如果需要,这是我正在开发的网站:

http://shopmoonfall.bigcartel.com/products

4

2 回答 2

0

您可以使用“替换”来编辑该变量,例如:

{{ paginate | default_pagination }}在产品页面中 替换为:

{{ paginate | default_pagination | replace: "Next &raquo;", "New Text Here" | replace: "&laquo; Previous", "New Text Here" }}

于 2014-02-25T23:21:40.033 回答
0
{{ paginate | default_pagination: "id", "class", "previous", "next"}}
于 2014-08-05T20:52:01.400 回答