How to replace default event banner placeholder image

How to replace default event banner placeholder image

Replace default event banner placeholder image

In order to add the default image in the banner, when someone does not submit any event banner, you can add the following code

  1. Open your child theme,
  2. Add the code into the funtions.php file:
  1. add_filter( 'event_manager_default_event_banner','your_theme_slug_default_event_banner');
  2. function your_theme_slug_default_event_banner($image_path){
  3.     $image_path = 'YOUR IMAGE PATH HERE'; 
  4.    return $image_path;     
  5. }
Save
    • Related Articles

    • Create default image path filter

      In this WP Event Manager tutorial, you will learn about how you can create a default image path filter. Every event organizer tries to gain as much attention as possible from their visitors or target audiences and using an attractive event banner ...
    • Limit the banner Size

      An event banner in WP Event Manager plays a pivotal role in attracting your target audience toward your event. It displays your event details and catches the attention of your audience with its exclusive designs and images. However, to ensure that ...
    • Changing the event slug/permalink

      In this guide, we will show you how you can change or customize the event slug or permalink. It usually appears like this: http://yoursite.com/events/event-listing-title in the default settings. To customize this with WP Event Manager, you can use ...
    • Create or pick categories from Free/ Core WP Event manager

      Events are classified into various types based on the kind of visitors they have. Visitors come from different backgrounds. That is why an event organizer or admin must ensure that they make a lot of event categories available to their clients. This ...
    • Create or pick categories from Free/ Core WP Event manager

      Events are classified into various types based on the kind of visitors they have. Visitors come from different backgrounds. That is why an event organizer or admin must ensure that they make a lot of event categories available to their clients. This ...