Home › Forums › Support › Elements Header Background image using CFT? This topic has 3 replies, 2 voices, and was last updated 4 years, 1 month ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts May 2, 2019 at 2:24 pm #887153 Burt Is there any way to use a custom field type as a background image in Elements header? May 2, 2019 at 3:29 pm #887178 TomLead Developer Lead Developer Hi there, For sure, try this: add_filter( 'generate_page_hero_background_image_url', function( $url, $options ) { if ( 123 === $options['element_id'] ) { $field = get_post_meta( get_the_ID(), 'your_custom_field_name', true ); if ( $field ) { $url = $field; } } return $url; }, 10, 2 ); You just need to replace 123 with the element ID you’re targeting, and your_custom_field_name with the name of your custom field. May 2, 2019 at 3:40 pm #887189 Burt Awesome Tom – I’m thinking you have a filter on every section (-; Tried looking for it in the dev filters but didn’t see – had a suspicion you would have a hero filter for elements Thx a million runner2009 Burt Gordon May 2, 2019 at 3:42 pm #887190 TomLead Developer Lead Developer I love filters 🙂 Glad I could help! Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In