Problem:
Set the featured image as background to a Divi module.
Solution:
Divi modules let you set a static background image (from the media library) but don't allow for dynamic image sources (coming from a custom field value). For that you would need to add a custom id to the element that will take the background, and then in a text (HTML) module add CSS that sets the background image of the element with that ID inside style tags, setting the url with a shortcode, as shown in the screenshot below: https://toolset.com/forums/topic/need-to-add-featured-image-as-a-backgroud/#post-1150575
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
This topic contains 4 replies, has 2 voices.
Last updated by 6 years, 2 months ago.
Assisted by: Nigel.