How can we help?

Create default image path filter

WP Event Manager tutorial to Create default image path filter, One of the best ways to stand out from the crowd is to have an amazing attracting banner/ image for the event. The banner enhances and grabs the highlights of the show.

However, it sometimes happens that the users do not add any banner image for the event. In order to curb this issue, one can follow these easy steps. As a result, a default banner would be added to the event by Creating default images path filter.

Create default image path filter

  1. Create a child theme and open function.php.
  2. Open your active theme function.php.
  3. Add code :
       function default_event_banner($image_url)
            $image_url = 'https://wp-eventmanager.com/wp-content/uploads/plugins-icons/wp-event-manager.png';
            return $image_url;
       add_filter('event_manager_default_event_banner', 'default_event_banner');
Was this article helpful?
How can we improve this article?
How Can We Improve This Article?
Quick Links