[Resolved] Image alignment in the woocommerce catalog

Home Forums Support [Resolved] Image alignment in the woocommerce catalog

Home Forums Support Image alignment in the woocommerce catalog

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #448620
    roberto

    Hi, I have a problem with the alignment of images in the woocommerce catalog.
    The images are not aligned, some are higher up.
    This is the link to the catalog: http://gruppocasaimmobiliare.it/catalogo/
    Any solution?
    Thank you.

    #448735
    Leo
    Staff
    Customer Support

    Hi there,

    Give this CSS a shot:

    .woocommerce ul.products li.product h2 {
          line-height: 2.5ex;
          height: 5ex; /* 2.5ex for each visible line */
          overflow: hidden;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #448761
    roberto

    Thanks Leo, but that code affects text, not images

    #448917
    roberto

    I solved, the problem was a plugin.
    Thanks.

    #448927
    Tom
    Lead Developer
    Lead Developer

    This is being caused by a woosticker element in your markup. Maybe being added by a plugin?

    #448933
    roberto

    Yes, if I disable woosticker the images are aligned

    #448948
    Tom
    Lead Developer
    Lead Developer

    Awesome ๐Ÿ™‚

    If you need that plugin we should be able to come up with a CSS solution.

    #448969
    roberto

    Yes, I would need, what solution can be adopted ?

    #449116
    Tom
    Lead Developer
    Lead Developer

    Try this CSS:

    .woocommerce ul.products li.product .woocommerce-LoopProduct-link > :not(:first-child) {
        margin-top: 0;
    }
    #449174
    roberto

    Thanks Tom, with your code I solved.
    Great support, see you next time.
    Greetings.

    #449486
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

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