Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    The default logo?

    The filter job_manager_default_company_logo can be used. On this line: https://github.com/mikejolley/WP-Job-Manager/blob/master/wp-job-manager-template.php#L324

    This may help you out: https://pippinsplugins.com/a-quick-introduction-to-using-filters/

    Thread Starter visuo

    (@visuo)

    Thank you for your hints! It works.

    Yes I meant the default-logo.

    Have a good one.
    Emanuel

    Can someone help to elaborate the steps after changing the url in the wp-job-manager-template.php (which is copied to the child theme job_manager folder)? What’s the filter snippet and where should I locate it?

    Many thanks in advance.

    Thread Starter visuo

    (@visuo)

    Hi sweetmelody,

    I can tell you the steps that worked out for me.
    At first I didn’t copy the “wp-job-manager-template.php” into the child theme folder.
    The only thing I did was inserting these lines into my functions.php of my child-themes folder:

    function job_manager_custom_logo() {
        return '../../wp-content/uploads/company.png';
    }
    
    add_filter('job_manager_default_company_logo', 'job_manager_custom_logo');

    In the first three lines you declare a function that returns the relative path to the logo-file.
    After that you add a filter, that will replace the standard logo-path at “job_manager_default_company_logo” with the relative default logo path which is going to be returned after calling the function “job_manager_custom_logo”.

    I don’t know if that is the proper way to 100 percent but it does the job for me.

    I have inserted this piece of code in the child theme’s function.php:

    <?php
    
    // Your php code goes here
    function job_manager_custom_logo() {
        return 'http://thrones.susansiow.com/wp-content/uploads/2015/06/logo6.png';
    }
    
    add_filter('job_manager_default_company_logo', 'job_manager_custom_logo');
    
    ?>

    But it doesn’t replace the default company logo, could you visit this page and have a look > http://thrones.susansiow.com/jobs/?

    Thanks.

    Thread Starter visuo

    (@visuo)

    Hi,

    did you insert it into a file called function.php or functions.php?
    It should work with the code you’ve inserted, but you have to name the file functions.php.

    Hi Visuo,

    Thanks so much!!! You are right, I’ve left out the ‘s’.
    What’s your website, so I can pay a visit?

    Thanks again for your great php knowledge. 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Changing Custom Company Logo’ is closed to new replies.