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;
}
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025