Skip to content

Instantly share code, notes, and snippets.

@tripflex
Last active September 22, 2022 16:33
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;
}
@catoegroup
Copy link

Perfection. Thank you so much for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment