how do i change number of product displayed in a row in tabs

Topic summary

A user is customizing a “Tabs” section in their Shopify store (Dawn theme 8.0.1) and needs help with layout and styling adjustments.

Initial requests:

  • Change desktop product display from 4 to 3 per row
  • Change mobile display from 2 to 1 product per row
  • Update styling: grey marker and border color to brand color #633522, adjust arrow color and size

Current status:
A helper (Moeed) provided CSS code to add to theme.liquid above the tag. After implementation, the layout improved but new issues emerged:

  • Product variants and “add to cart” buttons disappeared
  • Left arrow only shows halfway and doesn’t fully display the brand color

Additional request:
User wants to add product descriptions and pricing below products.

Note: The original code snippet appears corrupted/reversed in the post, making it difficult to analyze the exact implementation.

Summarized with AI on November 3. AI used: claude-sonnet-4-5-20250929.

Hi,

I created a section called “Tabs” by modifying the code. I have inserted a code snippet and would like to make the following adjustments:

  1. Number of products per row:

    • Change the number of products displayed in a row on desktop from 4 to 3.
    • Change the number of products displayed in a row on mobile from 2 to 1.
  2. Styling adjustments:

    • Update the grey marker on “Best Sellers” to match my brand color: #633522.
    • Change the border surrounding the image circle to match the same color (#633522).
    • Adjust the arrow styling:
      • Change the arrow color to #633522.
      • Increase the arrow size slightly for better visibility.

I appreciate your help!
For reference, I am using the Dawn theme version 8.0.1. Below is the code I am currently using for the “Tabs” section:

{%- if section.blocks.size > 0 -%}

{%- if section.settings.useslider -%} {%- endif -%} {%- if section.settings.title != blank -%}

{{ section.settings.title }}

{%- endif -%}
{%- assign tabContent = '' -%}
    {%- for block in section.blocks -%} {%- assign collection = collections[block.settings.collection] -%}
  • {{ collection.title }}
  • {%- capture content -%}
      {%- for product in block.settings.collection.products limit: 8 -%}
    • {% render 'card-product', card_product: product, media_aspect_ratio: section.settings.image_ratio, image_shape: section.settings.image_shape, show_secondary_image: section.settings.show_secondary_image, show_vendor: section.settings.show_vendor, show_rating: section.settings.show_rating, show_quick_add: section.settings.enable_quick_add, section_id: section.id %}
    • {%- endfor -%}
    {%- if block.settings.viewall -%} {%- endif -%}
    {%- endcapture -%} {%- assign tabContent = tabContent | append: content -%} {%- endfor -%}
{{ tabContent }}
.grid--3-col-desktop { display: grid; grid-template-columns: repeat(3, 1fr); } .grid--1-col-tablet-down { display: grid; grid-template-columns: 1fr; } {%- endif -%}

1 Like

Hey @Yasin_1

Share your Store URL and Password if enabled.

Best Regards,

Moeed

Hi Moeed, thanks alot.

here is the link and the password:

store url: barefoot-hiking.com

password: umaifff

Hey @Yasin_1

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

thank you Moeed, it is better now but something changed after i added the code, as you can see in the screen shot, the variants and the add to cart button that im used to have are gone, and as well the arrow on the left is only half shown and doesnt fully have my branding color

i almost forgot, if you may, i also have one last thing in mind. is it possible to have the description as well under the price?