Search code examples
shopware6

Shopware 6 Image gallery and thumbnails


how to change the image gallery thumbnails from vertical left alignment to horizontal bottom ??

changing configuration in twig files. at least should the image gallery thumbnails changed to horizontal bottom, and sorry for my bad english


Solution

  • thank you for the help, i find another way to solve this, is when modify the cms-element-image-gallery.html.twig , and there change some configuration or reverse some css classes and it will work that thumbnails will be positioned in horizontal underneath the image slider and not

    vertical left:      {% if galleryPosition == "left" %}
                        {% set gallerySliderOptions = gallerySliderOptions|replace_recursive({
                            thumbnailSlider: {
                                responsive: {
                                    md: {
                                        axis: 'vertical'
                                    },
                                    lg: {
                                        axis: 'vertical'
                                    },
                                    xl: {
                                        axis: 'vertical'
                                    }
                                }
                            }
                        }) %} this to vertical, and and here {% block element_image_gallery_inner_thumbnails_col %} 
    

    change the css classes .