How to bold current page number for pagination.liquid?

Solved
Izzi26
Tourist
4 0 2

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

Izzi26_0-1697227938939.png

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

<div id="pagination" class="desktop-12 tablet-6 mobile-3">
  <span class="count">{{ '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 }}.</span>

  <div class="clear"></div>

  {% if paginate.previous %}
    <div class="pagiprev">
      <a href="{{ paginate.previous.url }}" class="paginate_prev">
        {% 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)' %}
      </a>
    </div>
  {% endif %}


  {% for part in paginate.parts %}
    {% if part.is_link %}
      {{ part.title | link_to: part.url }}
    {% else %}
      {% if part.title == '&hellip;' %}
        {{ part.title }}
      {% else %}
        <span class="current">{{ part.title }}</span>
      {% endif %}
    {% endif %}
  {% endfor %}
  {% if paginate.next %}
    <div class="paginext">
      <a href="{{ paginate.next.url }}" class="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)' %}
      </a>
    </div>
  {% endif %}
</div>
Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
4007 916 1119

This is an accepted solution.

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. 

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 3 (3)
Made4uo-Ribe
Shopify Partner
4007 916 1119

This is an accepted solution.

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. 

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Izzi26
Tourist
4 0 2

It worked! Thank you

Made4uo-Ribe
Shopify Partner
4007 916 1119

Please dont forget to hit Like, Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com