fbpx

How can we help?

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 image path filter.

  1. Create a child theme and open function.php.
  2. Open your active theme function.php.
  3. Add code :
  4. <?php
    
       function default_event_banner($image_url)
        {
            $image_url = 'https://mk0wpeventmanag0sirn.kinstacdn.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?