Last active
January 31, 2025 22:39
-
-
Save tripflex/6458a3024e1f8f0e3856660b735c1cfc to your computer and use it in GitHub Desktop.
Change default Company Logo in WP Job Manager
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ^ there should only be one of these at the top of your child theme's functions.php file | |
add_filter( 'job_manager_default_company_logo', 'smyles_custom_job_manager_logo' ); | |
function smyles_custom_job_manager_logo( $logo_url ){ | |
// Change the value below to match the filename of the custom logo you want to use | |
// Place the file in a /images/ directory in your child theme's root directory. | |
// The example provided assumes "/images/custom_logo.png" exists in your child theme | |
$filename = 'custom_logo.png'; | |
$logo_url = get_stylesheet_directory_uri() . '/images/' . $filename; | |
return $logo_url; | |
} |
Thank you so much! It worked like a charm! :D
Thank you for sharing this.
Strangely this does not affect the admins: when I am logged in as admin, the default image path is used. Any ideas how I get WP Job Manager to use the custom path for admins, too?
Perfection. Thank you so much for this!
Hi, not working for me, wonder does it need updating?
Hi, not working for me, wonder does it need updating?
No this is still correct, this is only for the default image (meaning only changing the image if there is NO company logo on a listing)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey thanks for this, it works really well. I was just wondering whether it is possible to use the employers Buddypress profile avatar as the default "logo" instead of an uploaded image?