Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1485961

    Hello,
    I am struggling with the horizontal image gallery. I would like to show some text below each image and I am using “image copyright”, because I found no other possibility. The problem is, that it should show up below the image, and not on it. To get this working I used the following code:
    .presse-galerie .av-image-copyright {
    position: relative;
    padding-top: 10px;
    }
    Where .presse-galerie is my class for the gallery.
    This works for desktop view. But unfortunately not in tablet or mobile mode. My copyright text will displayed on the image and is not readable.

    Another issue is, that the horizontal gallery is not really responsive. It only works well in desktop mode. But on smaller screens images are badly cropped. Could you please provide some CSS to make this elements responsive?

    Thanks, Bettina

    #1486005

    Hey Bpelzer,

    Thank you for the inquiry.

    Adding this css code should help move the copyright text below the image, but it will create a bit of extra space below the slider.

    #presse .av-horizontal-gallery {
        padding-bottom: 120px;
    }
    
    #presse .presse-galerie .av-image-copyright {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
        padding-top: 0;
    }
    
    #presse .presse-galerie .av-horizontal-gallery-wrap {
        overflow: visible;
        padding-bottom: 50px;
    }

    View post on imgur.com

    Best regards,
    Ismael

    #1486015

    Thanks, Ismael.
    That CSS solves my problem with image copyright. Great!
    What about the responsiveness?
    When looking at the gallery in tablet or mobile view, then all images are cropped. I need them to show in full size, without croppting.

    And I need the gallery to show 4 images in one row. There is no setting for that. How can I solve this?

    Best regards
    Bettina

    #1486131

    Hi,

    Thank you for the update.

    We edited the Horizontal Gallery element and set Stil > Galerie > Bildgröße to “No scaling” to display the original size, then added this css code to adjust the minimum height of the gallery.

    @media only screen and (max-width: 768px) {
    
      /* Add your Mobile Styles here */
      .responsive .av-horizontal-gallery-inner {
         min-height: 500px !important;
      }
    
       .responsive .av-horizontal-gallery-img {
          transform: none;
          top: 0;
       }
    }
    

    View post on imgur.com

    Best regards,
    Ismael

    #1486154

    Hi Ismael,

    thanks for your support. I have noticed, that you put your code within the “quick CSS” box inside theme settings.
    Did you realize, that I had already a lot of code within Custom CSS area of the WP Customizer? I am not sure, if those two areas for CSS work well together or if any of the code is rendered earlier.
    What would you recommend?

    And another hint for your team: if there has to be such a large amount of CSS code to make the horizontal gallery look good in all kind of displays, then this element is NOT RESPONSIVE out of the box.

    This is the whole CSS code, which I had to write for my horizontal gallery:
    ####################################

    @media only screen and (max-width: 489px) {
    /* Add your Mobile Styles here */
    .responsive .av-horizontal-gallery-inner {
    min-height: 120px;
    }
    .responsive .av-horizontal-gallery-img {
    transform: none;
    top: 0;
    }
    }
    @media only screen and (min-width: 490px) and (max-width: 767px) {
    /* Add your Mobile to Tablet Styles here */
    .responsive .av-horizontal-gallery-inner {
    min-height: 580px;
    }
    .responsive .av-horizontal-gallery-img {
    transform: none;
    top: 0;
    }
    }
    #presse .av-horizontal-gallery {
    padding-bottom: 350px;
    }
    #presse .presse-galerie .av-image-copyright {
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    padding-top: 50px;
    }
    }
    @media only screen and (min-width: 768px) {
    /* Add your Tablet Styles here */

    #presse .av-horizontal-gallery {
    padding-bottom: 100px;
    }
    #presse .presse-galerie .av-image-copyright {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    padding-top: 0;
    }
    #presse .presse-galerie .av-horizontal-gallery-wrap {
    overflow: visible;
    padding-bottom: 30px;
    }
    }
    @media only screen and (min-width: 767px) {
    /* Add your Tablet Styles here */
    #presse .av-horizontal-gallery {
    padding-bottom: 100px;
    }
    #presse .presse-galerie .av-image-copyright {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    padding-top: 0;
    }
    #presse .presse-galerie .av-horizontal-gallery-wrap {
    overflow: visible;
    padding-bottom: 40px;
    }
    }
    ################################

    And it is not a guaranty, that this works on every screen and/or browser… I am really getting a headache because of this horizontal gallery and I do not understand, why your theme coding and configuration settings do not provide this capability as a standard.

    If I had knew this before buying, I wouldn’t have. Sorry to say that. But I am not good in coding, so this is why I am using themes and plugins. All this coding and contact with support takes very much time, that I do not get paid.

    Please use my comments on this topic for a feature request!!

    Best regards
    Bettina

    #1486179

    Hi,

    Thank you for the update.

    The code in the Custom CSS and Quick CSS fields shouldn’t conflict, but for easier maintenance, we recommend using only one. Regarding the Horizontal Gallery, this element is intended for image galleries, but you’re currently using it more like a post slider with text and meta information, which requires additional customization. We suggest using a more appropriate element such as Blog Posts, Post Slider, or Content Slider, or consider moving the slide items to their own subpages.

    Best regards,
    Ismael

    #1486187

    Hello Ismael,
    thank you for your suggestion, but neither blog posts, content slider etc. would work for our content. Those thumbnails in the horizontal gallery ARE images, that are linked to external press articles. They are not intended to be readable, but they should not be cropped. If you click on them, then the article (all from external newspapers) show the full content.
    So no post or content slider would work.
    I do not understand, why the horizontal gallery has no possibility to show its images in full size, without cropping. Who wants their images to be cropped in mobile view??
    I really do not understand, why there is so much CSS code needed to make them show correctly… in my opinion this element is NOT CODED RESPONSIVE.

    Best regards
    Bettina

    #1486296

    Hi,

    why the horizontal gallery has no possibility to show its images in full size

    We’ve already applied the necessary changes to display the images in full, as shown in the screenshot above. Please purge the plugin cache or clear your browser history, then check the page again.

    Not all users are concerned about displaying images in full, especially in image galleries where there’s no text or meta information included. That’s why css properties like “background-size: cover;” exist. They resize and crop images as needed to make sure the parent container is fully covered, even if it means partially hiding parts of the image.

    https://www.w3schools.com/cssref/css3_pr_background-size.php

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.