Can anyone tell me why these wouldn’t be working and what file this part of the code would be in?
Topic summary
A user encountered non-functional pagination links (“NEXT 1 | 2 | 3”) at the bottom of category pages in the Symmetry theme.
Initial Problem:
- Pagination navigation controls were not working properly
- User sought help identifying which file contained the relevant code
Troubleshooting Process:
- Shared code from
pagination-control.liquidfile - The posted code appears corrupted or reversed (text displayed backwards/garbled)
- Also referenced CSS for
.pagination-rowstyling
Resolution:
- User successfully resolved the issue independently (“I DID IT!!!”)
- No specific solution details were shared
- The fix appears related to CSS margin adjustments (top-margin: 100px; bottom-margin: 20px)
The thread concluded with the problem solved, though the exact fix wasn’t documented for future reference.
This is the code in my pagination-control.liquid:
{% if paginate.pages > 1 %}
{% if paginate.previous %}
« {{ 'general.pagination.previous' | t }}
·
{% endif %}
{% endif %}
{% for part in paginate.parts %}
{% if part.is_link %}
{{ part.title | link_to: part.url }}
{% else %}
{{ part.title }}
{% endif %}
{% endfor %}
{% if paginate.next %}
·
{{ ‘general.pagination.next’ | t }} »
{% endif %}
I DID IT!!!
/* Pagination */
.pagination-row {
text-align: center;
margin-top: 100px;
margin-bottom: 20px;
}