Home / Admin / How to Customize the Labels for Image Choices
Duplicate Snippet

Embed Snippet on Your Site

How to Customize the Labels for Image Choices

<10
Code Preview
css
/* Position labels over images and hide them by default */
form#wpforms-form-1000 .wpforms-field .wpforms-image-choices-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
/* Show labels on hover */
form#wpforms-form-1000 .wpforms-field .wpforms-image-choices-item:hover .wpforms-image-choices-label {
    opacity: 1;
}

Comments

Add a Comment