Home Forums WoodMart support forum Product Grid Hover Image Border Radius CSS

Product Grid Hover Image Border Radius CSS

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

    jakechia828
    Participant

    Hi there,

    I have added a border-radius to my product grid but am having an issue where the border-radius changes on Hover. I have attached a video showing this issue. Could you guys kindly provide the CSS code to ensure the border-radius stays the same even on hover?

    For your reference, the code which I added for the product grid image is:

    .product-grid-item img {
    border-radius: 15px !important;
    }

    Thank you very much!

    Attachments:
    You must be logged in to view attached files.
    #369014

    Hello,

    Please add this code to the Theme Settings > Custom CSS > Global:

    .product-grid-item:hover .product-element-top {
    border-radius: 15px !important;
    }
    .product-grid-item .product-wrapper {
    border-radius: 15px !important;
    }
    .product-grid-item:hover .hover-img {
    border-radius: 15px !important;
    }
    .product-grid-item {
    border-radius: 15px !important;
    }

    Best Regards

    #369051

    jakechia828
    Participant

    Hi there,

    Thanks for the quick response. I have added the CSS and the border-radius is now showing on hover. However, there is an issue where the square edges can still be seen when hovering out of the product image. I have attached a video showing the issue.

    Could you kindly provide me with the CSS to fix this issue? Thank you very much!

    Attachments:
    You must be logged in to view attached files.
    #369264

    Hello,

    Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.

    Best Regards

    #369465

    jakechia828
    Participant

    Hello,

    I have inserted my site admin access. I have added the CSS code provided under Theme Settings > Custom CSS > Global, you may find it there.

    Thank you so much for your assistance, I really appreciate it!

    #369633

    Hello,

    Please replace the custom CSS with this one:

    .wd-hover-icons .product-element-top {
    	border-radius: 30px;
    }

    If you have any questions please feel free to contact us.

    Best Regards

    #369735

    jakechia828
    Participant

    Hi there,

    I have tested the code and it works perfect. Thank you very much for solving my issue once again!

    Best Regards

    #369808

    You are welcome! We are here to help.

    Wish you a wonderful day!

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Product Grid Hover Image Border Radius CSS’ is closed to new replies.