Collection page on mobile ( Palo Alto Theme)

Hi guys, I was wondering how to create 2 products per row on collection page for palo alto theme (mobile version)? Let me know! Thank you so much!

Hello There,

Could you kindly share your store URL with me so that I can take a look and suggest you. As palo alto theme is Paid theme so it might be having some different structure on which will need to check.

https://vobapbelhwv0pfm0-44487868571.shopifypreview.com

here’s the preview! THank you so much. The theme is yet to be published

Hello Holahome,

Thank you for the preview link.

Kindly check your collection template and find the below given class:-

grid__item text-center small–one-whole medium–one-half large–one-third product-grid-item

In the below given class you will need to change the small–one-whole to small–one-half

By doing this it will help you in making two products per row in the mobile version.

Kindly DM me if you need any further information on the same.

I cant find the code! This is the full HTML on collection template.

{%- assign subcollectionsPosition = section.settings.subcollections -%}
{%- assign subcollections_per_row = section.settings.subcollections_per_row -%}
{%- assign filter_mode = section.settings.filter_mode -%}
{%- unless filter_mode == ‘hidden’ -%}
{%- assign enable_filters = true -%}
{%- else -%}
{%- assign enable_filters = false -%}
{%- endunless -%}
{%- assign position_filters = section.settings.position_filters -%}
{%- assign enable_sorting = section.settings.enable_collection_sorting -%}
{%- assign enable_swatches = settings.color_swatches -%}
{%- assign enable_reviews = settings.enable_reviews -%}
{%- assign show_review_stars = settings.show_review_stars -%}
{%- assign image_size = settings.image_size -%}
{%- assign image_aspect_ratio = settings.image_aspect_ratio -%}
{%- assign product_grid_slideshow = settings.product_grid_slideshow -%}
{%- assign product_grid_slideshow_arrows = settings.product_grid_slideshow_arrows -%}
{%- assign subheading = section.settings.subheading -%}
{%- assign heading_font_size = section.settings.heading_font_size -%}
{%- assign text_font_size = section.settings.text_font_size -%}
{%- assign collections_all = false -%}
{%- if collection.handle == ‘all’ -%}
{%- assign collections_all = true -%}
{%- endif -%}

{%- if enable_filters -%}
{% comment %}
Assign all selected tags to the container data attributes
{% endcomment %}
{%- assign selected_tags = ‘’ -%}

{%- for tag in current_tags -%}
{%- assign current_tag_handle = tag | replace: ‘’', ‘’ | replace: ‘"’, ‘’ | handle -%}
{%- assign selected_tags = selected_tags | append: current_tag_handle -%}
{%- unless forloop.last -%}
{%- assign selected_tags = selected_tags | append: ‘+’ -%}
{%- endunless -%}
{%- endfor -%}

{%- endif -%}

{% comment %}
If there is a collection image, the split header is used.
Else, the plain, centered text header is used.
{% endcomment %}

{% comment %}
Collection header
{% endcomment %}

{%- capture collection_header -%}
{%- if collection.image -%}
{%- assign collectionHeaderClass = ‘collection-header–has-image’ -%}
{%- else -%}
{%- assign collectionHeaderClass = ‘collection-header–no-image’ -%}
{%- endif -%}

{%- if collection.description != blank -%} {%- unless collections_all -%} {%- if subheading != blank -%}
{{ subheading }}
{%- endif -%} {%- endunless -%}

{{ collection.title | escape }}

{{- collection.description -}}
{%- else -%} {%- unless collections_all -%} {%- if subheading != blank -%}
{{ subheading }}
{%- endif -%} {%- endunless -%}

{%- if collection.handle == ‘all’ -%}

{{ 'products.general.catalog' | t }}

{%- else -%}

{{ collection.title }}

{%- endif -%} {%- endif -%}
{%- endcapture -%}

{%- if collection.image -%}
{% comment %} Banner Settings {% endcomment %}
{%- assign banner_height = section.settings.banner_height -%}
{%- assign text_position = section.settings.text_position -%}
{%- assign overlay_opacity = section.settings.overlay_opacity | times: 0.01 | round: 2 -%}

.banner-inner::after { opacity: {{ overlay_opacity }}; }
{%- unless banner_height == 'original-height' -%}
{%- else -%} {%- render 'responsive-image', image: collection.image, image_alt: collection.image.alt, container_class: 'banner-img--original' -%} {%- endunless -%}
{{- collection_header -}}
{%- else -%} {%- assign bg_color = section.settings.bg_color | default: '#fafafa' -%} .site-header, .collection-header--no-image { background: {{ bg_color }}; }
{{ collection_header }}
{%- endif -%}
{%- if enable_filters -%} {%- render 'collection-filters', enable_filters: enable_filters, filter_mode: filter_mode, position_filters: position_filters -%} {%- endif -%}

{%- assign collection_count = collection.all_products_count -%}

{%- if subcollectionsPosition == ‘top’ -%}
{%- render ‘sub-collections’,
subcollectionsPosition: subcollectionsPosition, subcollections_per_row: subcollections_per_row -%}
{%- endif -%}

{%- if section.settings.show_breadcrumbs -%}
{%- render ‘breadcrumbs’ -%}
{%- endif -%}

{%- if enable_sorting -%}
{%- render ‘collection-sorting’ -%}
{%- endif -%}

{%- paginate collection.products by 12 -%}

{%- if collection_count > 0 -%} {%- if collection.products_count > 0 -%}

{% comment %} Infinity scrolling {% endcomment %}

{%- for product in collection.products -%} {% comment %} {%- include 'product-grid-item', collection_count: ‘collection.all_products_count’ -%} {% endcomment %}

{% render ‘product-grid-item’,
product: product, enable_swatches: enable_swatches, enable_reviews: enable_reviews, enable_carousel: enable_carousel,
show_review_stars: show_review_stars, product_grid_slideshow: product_grid_slideshow %}
{%- endfor -%}

{%- else -%}

{{ 'collections.general.no_matches_by_filter' | t : products_count: collection.products_count }}

{%- if enable_filters and filter_tags != blank -%}
{% render 'icon-close' %}{{ 'products.general.reset' | t }}
{%- endif -%}
{%- endif -%} {%- elsif collection.handle == 'all' and collection_count == 0 -%} {{- 'theme-onboarding.css' | global_asset_url | stylesheet_tag -}} {%- render 'onboarding-empty-collection', product_grid_slideshow: product_grid_slideshow -%} {%- elsif collection.handle != 'all' and collection_count == 0 -%}

{{ 'collections.general.no_matches' | t }}

{{ 'general.404.button_text' | t }}
{%- endif -%}
{%- if paginate.next -%} {%- endif -%}

{%- if subcollectionsPosition == ‘bottom’ -%}
{%- render ‘sub-collections’,
subcollectionsPosition: subcollectionsPosition, subcollections_per_row: subcollections_per_row -%}
{%- endif -%}

{%- endpaginate -%}

{% schema %} { "name": "Collection pages", "class": "collection-section full-header", "settings": [ { "type": "header", "content": "Layout" }, { "type": "checkbox", "id": "show_breadcrumbs", "label": "Show breadcrumbs", "default": true }, { "type": "header", "content": "Subcollections" }, { "type": "select", "label": "Show subcollections", "id": "subcollections", "default": "hidden", "options": [ { "label": "Top", "value": "top" }, { "label": "Bottom", "value": "bottom" }, { "label": "Hidden", "value": "hidden" } ] }, { "type": "range", "id": "subcollections_per_row", "label": "Items per row", "step": 1, "max": 5, "min": 3, "default": 3 }, { "type": "header", "content": "Filters and sorting" }, { "type": "checkbox", "id": "enable_collection_sorting", "label": "Enable collection sorting", "default": true }, { "type": "select", "label": "Filter mode", "id": "filter_mode", "info": "Filters by group requires specific tag formatting. [Learn more]([https://help.shopify.com/manual/using-themes/themes-by-shopify/supply#product-tips-tips-specific](https://help.shopify.com/manual/using-themes/themes-by-shopify/supply#product-tips-tips-specific))", "default": "tag", "options": [ { "label": "Hidden", "value": "hidden" }, { "label": "By tag", "value": "tag" }, { "label": "By group", "value": "group" } ] }, { "type": "select", "id": "position_filters", "label": "Position", "default": "left", "options": [ { "label": "Top", "value": "top" }, { "label": "Left", "value": "left" } ] }, { "type": "header", "content": "Banner image" }, { "type": "select", "id": "banner_height", "label": "Banner height", "options": [ { "value": "one-hundred", "label": "Full screen" }, { "value": "original-height", "label": "Original" }, { "value": "big", "label": "750px" }, { "value": "normal", "label": "650px" }, { "value": "small", "label": "550px" } ], "default": "normal" }, { "type": "text", "id": "subheading", "label": "Subheading" }, { "type": "select", "id": "text_position", "label": "Text position", "default": "center", "options": [ { "label": "Left", "value": "left" }, { "label": "Center", "value": "center" }, { "label": "Right", "value": "right" }, { "label": "Bottom left", "value": "bottom-left" }, { "label": "Bottom right", "value": "bottom-right" } ] }, { "type": "select", "id": "text_color", "label": "Text color", "default": "text-light", "options": [ { "value": "text-light", "label": "Light" }, { "value": "text-dark", "label": "Dark" } ] }, { "type": "header", "content": "Typography" }, { "type": "range", "id": "heading_font_size", "label": "Heading size", "unit": "px", "step": 4, "min": 40, "max": 64, "default": 48 }, { "type": "range", "id": "text_font_size", "label": "Text size", "unit": "px", "step": 2, "min": 16, "max": 28, "default": 20 }, { "type": "header", "content": "Overlay" }, { "type": "range", "id": "overlay_opacity", "label": "Opacity", "step": 5, "max": 95, "min": 0, "unit": "%", "default": 20 }, { "type": "header", "content": "Colors" }, { "type": "color", "id": "bg_color", "label": "Background", "default": "#fafafa" } ] } {% endschema %}