Hey,
As you can see my Slideshow picture is way to big.
I want it like this but I cant find any setting on how to edit the width and length of the picture
Hey,
As you can see my Slideshow picture is way to big.
I want it like this but I cant find any setting on how to edit the width and length of the picture
hello, younestimitar
please provide link to your website
you also need to provide the password to the website
hey sure,
timitarspices
Hey, sorry that was the old website, I was building a new one and now the picture is not like this. If you take a look now you will see it.
Thanks alot!
hey, Younes
Try going to online store > themes > actions > edit code, go to the end of the theme.css file, and add this:
@media (max-width: 768px) {
.slideshow__slide .hero__image-wrapper .parallax-image img {
object-fit: contain;
object-position: unset;
}
}
hey, Younes.
can you, first, check if the section or the block has something like ‘enable/disable parallax’ and see if disabling it will fix your issue?
If not, try replacing what I sent you with this code:
@media (max-width: 768px) {
.parallax-image {
position: static;
height: 100% !important;
transform: none !important;
}
.parallax-container {
position: static;
}
}
the image will still be a bit cropped, but less than before
Hey uhrick,
Wow thanks it worked!
I have another Issue where you can maybe help me.
I need to add the product weight to the product page in the same spot where its at the first picture.
Thanks for your help!
hey, Younes.
Can you show me the code to the file ‘product-template.liquid’ or ‘main-product.liquid’? It’s a file with product on the name, and it should be on sections or snippet
{%- liquid
assign current_variant = product.selected_or_first_available_variant
unless thumbnail_position
assign thumbnail_position = ‘beside’
endunless
assign product_zoom_size = ‘1800x1800’
assign product_image_size = ‘620x’
case image_container_width
when ‘small’
assign product_image_width = ‘medium-up–two-fifths’
assign product_description_width = ‘medium-up–three-fifths’
assign product_image_size = ‘480x’
when ‘medium’
assign product_image_width = ‘medium-up–one-half’
assign product_description_width = ‘medium-up–one-half’
assign product_image_size = ‘620x’
when ‘large’
assign product_image_width = ‘medium-up–three-fifths’
assign product_description_width = ‘medium-up–two-fifths’
assign product_image_size = ‘740x’
endcase
assign product_img_structure = product.featured_media | img_url: ‘1x1’ | replace: ‘1x1.', '{width}x.’
-%}
{%- liquid
assign connect_to_sizechart = false
for block in section.blocks
if block.type == ‘size_chart’
assign sizechart_index = forloop.index0
assign next_block_index = sizechart_index | plus: 1
assign variant_block = section.blocks[next_block_index]
if variant_block.type == ‘variant_picker’ and variant_block.settings.picker_type == ‘button’ and product.has_only_default_variant == false
for option in product.options_with_values
assign size_trigger = ‘products.general.size_trigger’ | t | downcase
assign downcased_option = option.name | downcase
if downcased_option contains size_trigger
assign connect_to_sizechart = true
endif
endfor
endif
endif
endfor
-%}
{%- render ‘product-template-variables’, product: product, current_variant: current_variant -%}
{%- if settings.vendor_enable -%}
{%- if isModal -%}
{{ product.title }}
{%- else -%}{%- if sku_enable -%}
{%- if current_variant.sku -%} {{ current_variant.sku }} {%- endif -%}
{%- endif -%}
{%- unless product.empty? -%}
{{ current_variant.price | money }}
{%- else -%}
{{ 1999 | money }}
{%- endunless -%}
{%- if settings.product_save_amount -%}
{%- if settings.product_save_type == ‘dollar’ -%}
{%- capture saved_amount -%}{{ current_variant.compare_at_price | minus: current_variant.price | money }}{%- endcapture -%}
{%- else -%}
{%- capture saved_amount -%}{{ current_variant.compare_at_price | minus: current_variant.price | times: 100.0 | divided_by: current_variant.compare_at_price | round }}%{%- endcapture -%}
{%- endif -%}
{%- unless hide_sale_price -%}
{{ ‘products.general.save_html’ | t: saved_amount: saved_amount }}
{%- endunless -%}
{%- endif -%}
{{ current_variant.unit_price | money }}/{{ unit_price_base_unit }}
{%- if shop.taxes_included or shop.shipping_policy.body != blank -%}
{%- if block.settings.picker_type == ‘button’ -%}
{%- render ‘variant-button’,
block: block,
product: product,
form_id: form_id,
section_id: section_id,
option: option,
forloop: forloop,
variant_labels: block.settings.variant_labels,
is_color: is_color,
color_option_index: color_option_index,
connect_to_sizechart: connect_to_sizechart,
sizechart_index: sizechart_index
-%}
{%- else -%}
{%- render ‘variant-dropdown’,
product: product,
form_id: form_id,
section_id: section_id,
option: option,
forloop: forloop,
variant_labels: block.settings.variant_labels
-%}
{%- endif -%}
{%- endfor -%}
{%- endunless -%}
{%- if block.settings.surface_pickup_enable -%}
{%- endif -%}{%- unless product.empty? -%}
{{ product.variants | json }}{%- if product.options.size > 1 -%}
{{ current_variant | json }}{%- endif -%}
{%- endunless -%}
{%- unless image_position == ‘left’ -%}
Hey, ok, thanks for the file, you will need to add the following code :
{% if current_variant.weight != blank %}
{{ current_variant.weight }}
{% endif %}
before this code:
Hey,
I cant find this code in the product-template.liquid
Hey,
I found it!
But its only half working.
There is a lot of spacing in between and also there is no weight unit. It should be 60g not 60.
Do you know how to fix this?
Replace what I’ve sent with
{% if current_variant.weight != blank %}
{{ current_variant.weight_in_unit }}{{ current_variant.weight_unit }}
{% endif %}
and the code below it, that I told you to search, replace it with this:
Hey Uhrick,
Thanks for your reply. Now the setup is perfect but it doesnt show the actual weight. I put in the weight for every product so thats not the problem. It shows 0.0g for every product.
try replacing
{{ current_variant.weight_in_unit }}{{ current_variant.weight_unit }}
with
{{ current_variant.weight_in_unit | weight_with_unit: current_variant.weight_unit }}
although I really don’t know the reason for this not to work