How To Change Default Image Path Filter For Events In

Описание к видео How To Change Default Image Path Filter For Events In

WP Event Manager Video to Create default image path filter, One of the best ways to stand out from the crowd is to have an amazing attractive 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 the 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.
Add code :

function default_event_banner($image_url) {
$image_url = 'CHANGE IT WITH YOUR IMAGE URL';
return $image_url;
}
add_filter('event_manager_default_event_banner', 'default_event_banner');

Code used in this video: https://gist.github.com/jrsarath/d8a4...

For more details - https://wp-eventmanager.com/knowledge...
Get WP Event Manager Addon - https://wp-eventmanager.com/product/w...
More info about WP Event Manager: https://wp-eventmanager.com
WP Event Manager Channel:    / @wpeventmanager  

🙋‍♂️ Have a question? Leave a comment below and I’ll do my best to respond.

Facebook:   / wpeventmanager  
Twitter:   / wp_eventmanager  
Linkedin:   / wp-event-manager  
Github: https://github.com/wpeventmanager/wp-...

Комментарии

Информация по комментариям в разработке