Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Can anyone tell me why these wouldn't be working and what file this part of the code would be in?
https://www.ebodyboarding.com/collections/eyewear
Solved! Go to the solution
This is an accepted solution.
I DID IT!!!
/* Pagination */
.pagination-row {
text-align: center;
margin-top: 100px;
margin-bottom: 20px;
}
This is the code in my pagination-control.liquid:
{% if paginate.pages > 1 %}
<div class="pagination">
{% if paginate.previous %}
<a class="prev" href="{{ paginate.previous.url }}">« {{ 'general.pagination.previous' | t }}</a>
<span class="pagination__sep">·</span>
{% endif %}
{% for part in paginate.parts %}
<span class="pagination__number {% if paginate.current_page == part.title %}active{% endif %}">
{% if part.is_link %}
{{ part.title | link_to: part.url }}
{% else %}
{{ part.title }}
{% endif %}
</span>
{% endfor %}
{% if paginate.next %}
<span class="pagination__sep">·</span>
<a class="next" href="{{ paginate.next.url }}">{{ 'general.pagination.next' | t }} »</a>
{% endif %}
</div>
{% endif %}
This is an accepted solution.
I DID IT!!!
/* Pagination */
.pagination-row {
text-align: center;
margin-top: 100px;
margin-bottom: 20px;
}
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025