daily pastebin goal
63%
SHARE
TWEET

Placeholder for events without featured images

BakerMan Mar 31st, 2014 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter( 'tribe_event_featured_image', 'featured_event_img_placeholder' );
  2.  
  3. function featured_event_img_placeholder( $html ) {
  4.         if ( ! empty( $html ) ) return $html;
  5.         return '<div style="width: 200px; height: 200px; background: #ddd"> </div>';
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top