Hiding product card makes uneven rows on venture

Solved
Highlighted
New Member
4 0 0

 Hi, 

i wanted to hide the collection card from the front page, i managed to do that but it causes the item grid to have a solo item on the top line like so:

screenshot.JPG

I think it might have something to do with this code in featured-products.liquid but cant figure out what. Any help much appreciated i'm totally stuck on this.

 

{% comment %}
On mobile, show a max of 3 products to fill out the 2x2 grid.
Turn mobile_product_limit to false to remove that limitation.
{% endcomment %}
{% assign mobile_product_limit = false %}
{% comment %}
On mobile the 5 column grid leaves a straggler when 1 or 3 rows.

Hide the straggler according to its index. It's one lower than
the number of columns because the fist column is a collection card.
This is only necessary when mobile_product_limit is false.
{% endcomment %}


{% case rows %}
{% when 2 %}
{% assign product_index_hide_on_mobile = 4 %}
{% when 3 %}
{% assign product_index_hide_on_mobile = 14 %}
{% endcase %}

0 Likes
Highlighted
Shopify Partner
148 23 30

@Thunderground Hi there,

 

Can you please share your store URL, so I will able to review the code of the Homepage Featured products section?

0 Likes
Highlighted
New Member
4 0 0

Hi,

Thanks for replying, 

store url is: thunderground.shop or thundrground.myshopify.com 

0 Likes
Highlighted
Shopify Partner
148 23 30

@Thunderground,

Sorry for the delay.

Can you please share with me a theme password too, since your store password protected.

0 Likes
Highlighted
New Member
4 0 0

No problem! I appreciate you taking the time, the site password has now been disabled.

0 Likes
Highlighted
Shopify Partner
148 23 30

This is an accepted solution.

@Thunderground Thank you for your patience.

As I can see, for the collection template is uses some not native theme's code:

Screenshot_3.jpg

 

You can find this code in the "collection.liquid" template of your Venture theme.

Let me know, it this code is require. If not, you can remove it to fix the issue with solo items.

0 Likes
Highlighted
New Member
4 0 0

Hi,

 

Yes! that worked, taking that out fixed it!

Thank you so much for the help now i'm ready for launch!

0 Likes