If you want to display your own logo image instead of WP Travel logo image as a placeholder so that when you don’t upload the image through the gallery section your own logo image will be displayed then WP Travel plugin provides the feature regarding replacing WP Travel logo image with a new one as placeholder image using filter code.

WP Travel logo image

To replace the logo image with a new one as a placeholder image, you have to add the following given code in the functions.php file of your child theme.

function wp_travel_customized_placeholder_url( $url ) {
    return 'http://wp-travel.test/wp-content/uploads/2021/07/company-name.png';
}
add_filter( 'wp_travel_placeholder_image_url', 'wp_travel_customized_placeholder_url' );

For detail information regarding how to create a child theme, please refer to our Knowledgebase.

Replace WP Travel logo image:

after replace WP Travel logo image

Also, if you want to learn more about the filter hook that is used to replace the placeholder image on the single trip page, please once refer specific hook page.

Further, if you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on FacebookInstagram, and Twitter.

Additionally, if you have any queries/confusion then please submit them to our Contact page.