Skip to content

Instantly share code, notes, and snippets.

@tripflex
Last active January 31, 2025 22:39
Show Gist options
  • Save tripflex/6458a3024e1f8f0e3856660b735c1cfc to your computer and use it in GitHub Desktop.
Save tripflex/6458a3024e1f8f0e3856660b735c1cfc to your computer and use it in GitHub Desktop.
Change default Company Logo in WP Job Manager
<?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;
}
@Saitama697
Copy link

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?

@matheusdigital
Copy link

Thank you so much! It worked like a charm! :D

@kuhnbnubstahl
Copy link

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?

@catoegroup
Copy link

Perfection. Thank you so much for this!

@mrpetreli
Copy link

Hi, not working for me, wonder does it need updating?

@tripflex
Copy link
Author

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