[Resolved] Add Opacity to image and display text based on custom field value

Home Forums Support [Resolved] Add Opacity to image and display text based on custom field value

Home Forums Support Add Opacity to image and display text based on custom field value

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #2347987
    Fergal

    Sounds great thank you!

    Can you please help me get ‘Filled / Expired’ to display on one line? Currently it is wrapping to two lines.

    #2347997
    Fernando
    Customer Support

    You can add width to this code: https://generatepress.com/forums/topic/add-opacity-to-image-and-display-text-based-on-custom-field-value/#post-2347041

    So it’s going to be:

    .gb-headline.my-overlay-text {
        position:absolute;
        top: 50%;
        left: 50%;
        transform:translate(-50%,-50%);
        z-index: 9999;
    width: 100%;
    }
    
    .gb-container.placeholder-div {
        position:relative;
    }

    However, inherently, you’ll need to reduce the font size or increase the space for the text so it doesn’t wrap.

    #2348002
    Fergal

    Ok awesome got it working thanks to your help!

    #2348003
    Fernando
    Customer Support

    You’re welcome Fergal!

Viewing 4 posts - 16 through 19 (of 19 total)
  • You must be logged in to reply to this topic.