shopping cart not displaying items counts on mobile device but displays perfectly on desktop

Solved
Highlighted
Tourist
10 1 3

Hello I have used simple theme to build www.radekus.com

On desktop the shopping cart icon works well. It displays number of product added to card. However on mobile devices it does not show number of products added to the cart. What could be wrong. 

0 Likes
Highlighted

Hi Radekusfamily,

The shopping cart icon has the class 'small--hide' on the span that includes the cart count. In your theme code find 'header.liquid' and remove "small--hide' from the <span> that holds the cart. You could do a search for {{ cart.item_count }} to find it. 

Let me know if you need help finding it.

Thanks,

Kyle Kopelke

Let's get Shopify figured out together. Get live USA-based customer service for your current or upcoming web project.

We offer free and paid Shopify support.
Monday - Friday | 9 AM — 5 PM EST
Email: hello@freshnarrative.io | tel: (443) 345-8162
Baltimore, Maryland, United States
0 Likes
Highlighted
Tourist
10 1 3

Thank you Kyle. 

I found this code in my header.liquid as per your suggestions. How do I remove "small--hide". what code should replace <span class ="small-hide"> if I have to remove "small-hide"

<div class="grid__item {% if shop.customer_accounts_enabled %} medium-up--two-fifths {% else %} medium-up--four-fifths {% endif %} small--one-half text-right">
<a href="{{ routes.cart_url }}" class="site-header__cart">
{% include 'icon-cart' %}
<span class="small--hide">
{{ 'layout.cart.title' | t }}
(<span id="CartCount">{{ cart.item_count }}</span>)
</span>
</a>
</div>

 

 

 

0 Likes
Highlighted

Hi Radekusfamily,

Simply remove "small--hide" completely. Nothing needs to replace it. Let me know how that works. 

Thank you,

Kyle

Let's get Shopify figured out together. Get live USA-based customer service for your current or upcoming web project.

We offer free and paid Shopify support.
Monday - Friday | 9 AM — 5 PM EST
Email: hello@freshnarrative.io | tel: (443) 345-8162
Baltimore, Maryland, United States
0 Likes
Highlighted
Tourist
10 1 3

This is an accepted solution.

Thanks Kyle is works nicely now. I did not know that the solution was so easy. 

1 Like