If you want to display your own logo image instead of the WP Travel logo image as a placeholder when you don’t upload the image through the gallery section your own logo image will be displayed.

WP Travel plugin provides the feature regarding replacing the WP Travel logo image with a new one as a placeholder image using filter code.

Steps to replace the WP Travel logo image with a new one

Step 1: Add the code in functions.php

WP Travel logo image

To replace the logo image with a new one as a placeholder image, you have to add the following 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 detailed information regarding how to create a child theme, please refer to our Knowledgebase.

Step 2: Replace the 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.

Conclusion

If you liked this article, then subscribing to our YouTube Channel for WordPress video tutorials would be the cherry on top.

You can also find us on FacebookInstagram, Linkedin, TikTok, Pinterest, Reddit, and our dedicated engaging Facebook user community, for you everyone.

Further, if you have any queries, please submit them to our Contact page.

Get WP Travel Pro and start creating your travel and tour booking website within minutes without any hassle of coding.

create your travel site within minutes by wptravel.io ,buy wptravel pro