featured image as background
-
Hallo,
I’m using this code in my loop to call the featured image of a post/page as the background-image for header div:
<?php $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID, ‘full’) ); ?>
<div class=”fibg” style=”background-image: url(<?php echo $url ?>);”> </div>It’s working perfectly – but not on tribe_events sites.
In events calendar settings ‘use standard page template (WordPress)’ is set.Any suggestions?
very grateful for any help
Markus
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘featured image as background’ is closed to new replies.