Home › Forums › Support › Add Opacity to image and display text based on custom field value This topic has 18 replies, 2 voices, and was last updated 8 months, 1 week ago by Fernando. Viewing 4 posts - 16 through 19 (of 19 total) ← 1 2 Author Posts September 19, 2022 at 6:50 pm #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. September 19, 2022 at 7:13 pm #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. September 19, 2022 at 7:27 pm #2348002 Fergal Ok awesome got it working thanks to your help! September 19, 2022 at 7:30 pm #2348003 Fernando Customer Support You’re welcome Fergal! Author Posts Viewing 4 posts - 16 through 19 (of 19 total) ← 1 2 You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In