Hey there!
It’s possible you will also need to make some adjustments to the actual calendar template for it to take full effect on all pages and posts. I would suggest adding that markup to the following template:
/wp-content/plugins/the-events-calendar/src/views/default-template.php
…and when you do, follow these steps to make sure those changes are saved on future plugin updates:
– Make a copy of the template
– Make a new folder in your theme (or child theme) called tribe-events
– Drop the copied template file in that folder
Will that work for you? Please let us know!
Geoff
Thread Starter
MLH17
(@mlh17)
Hey Geoff,
thanks a lot !!! It’s working now 🙂
In the meantime I was using this code:
<?php if (has_post_thumbnail( $post->ID ) ): ?>
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
$image = $image[0]; ?>
<?php else :
$image = get_bloginfo( 'stylesheet_directory') . '/images/myimage.jpg'; ?>
<?php endif; ?>
<div class="fibg" style="background-image: url('<?php echo $image; ?>') !important;" ></div>
to show at least a given standard picture if there’s no thumbnail (or not found). And that standard picture worked.
But now after adding this code in the default-template.php before the “<div id=”tribe-events-pg-template”>”-tag
and switching back in the-events-calendar-settings to it’s own default-template it’s working perfectly fine 🙂
Thank you so much again – and last but not least for this great plugin
Markus
Hey Markus,
I’m stoked to hear you managed to work it out! That’s a great job there!
And thank you for your kind words, we are happy our plugins are helping you out. We are putting a lot of work and effort into it so that people like you can realize their (calendar) ideas to the fullest. 🙂
Cheers,
Andras