How to bold current page number for pagination.liquid?

The pagination numbers at the bottom of every collection do not emphasize the current page number of that collection.

My store currently uses the Testament theme, how can I bold the number of the current page?


  {{ 'general.pagination.showing_items' | t }} {{ paginate.current_offset | plus: 1 }}-{% if paginate.next %}{{ paginate.current_offset | plus: paginate.page_size }}{% else %}{{ paginate.items }}{% endif %} {{ 'general.pagination.of' | t }} {{ paginate.items }}.

  

  {% if paginate.previous %}
    
      
        {% render 'snip-icons',
           wrapper: '.pagination',
           type: 'apollo',
           icon: 'left-carrot',
           classes: 'pagination--icon vib-center',
           size: '10px',
           fill: 'var(--link-color)',
           hover: 'var(--link-color)' %}
      
    

  {% endif %}

  {% for part in paginate.parts %}
    {% if part.is_link %}
      {{ part.title | link_to: part.url }}
    {% else %}
      {% if part.title == '…' %}
        {{ part.title }}
      {% else %}
        {{ part.title }}
      {% endif %}
    {% endif %}
  {% endfor %}
  {% if paginate.next %}
    

      
        {% render 'snip-icons',
         wrapper: '.pagination',
         type: 'apollo',
         icon: 'right-carrot',
         classes: 'pagination--icon vib-center',
         size: '10px',
         fill: 'var(--link-color)',
         hover: 'var(--link-color)' %}
      
    

  {% endif %}

1 Like

Hi @Izzi26

I suggest for css.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
#pagination.desktop-12.tablet-6.mobile-3 {
    font-weight: bold;
}
  • And Save.

I hope it help.

1 Like

It worked! Thank you

1 Like

Please dont forget to hit Like, Thanks!

1 Like