Hi!
We’re running the latest version of Blockshop on our site and are using a Featured Collection slider on the homepage. The collection its displaying is quite large, and we’ve got 7 slides right now and the page is just too heavy. Is there a way to limit how many slides are in the slider? I’ve poked around in the code but didn’t see any “max” or “limit” I could change (well, that actually did anything).
Any insights are greatly appreciated! Thank you!
1 Like
@shinysparkly
oh sorry for that issue can you please check customization that section setting may allow this option
also possible to share that section code so we will check and let you know
Hi! Checked customization and doesn’t look like it’s an option. I’m assuming this’d be in the featured-collection.liquid? Here’s what that looks like:
<featured-collection-root
class=“featured-collection–root”
data-section-id=“{{ section.id }}”
data-background-color=“{{ bg_color }}”
data-container=“section”
data-display-type=“{{ display_type }}”
data-has-image=“{% if collection_image.size > 0 %}true{% else %}false{% endif %}”
data-light-text=“{{ light_text }}”
data-section-type=“index_featured_collection”
data-spacing-above=“{{ spacing_above }}”
data-spacing-below=“{{ spacing_below }}”
style=“display:grid;”
{% if collection_description.size > 0 %}
{{ collection_description }}
{% endif %}
{% if collection_image.size > 0 %}
{{ collection_image }}
{% endif %}
{% if display_type == ‘slider’ %}
{{ skip_link_t }}
{% render
'carousel',
view: 'product',
section_id: section.id,
onboarding: onboarding,
bg_color: bg_color,
blocks: collection.products,
blocks_per_slide: 4,
blocks_per_slide_mobile: 2,
dot_nav_enabled: true,
total_blocks: collection.products.size,
total_slides: 3,
spacing_around_blocks: true,
transition_type: 'slide'
%}
{% else %}
{% liquid
if onboarding
for i in (1..product_limit)
assign placeholder_index = i
if i > 6
assign placeholder_index = i | minus: 6
endif
render ‘product–item’, onboarding: true, unique_handle: unique_handle, placeholder_index: placeholder_index
endfor
else
for product in collection.products limit: product_limit
render ‘product–item’, product: product, unique_handle: unique_handle, section_id: section.id
endfor
endif
-%}
{% endif %}
{% if collection.products.size > 1 %}
{% endif %}