Hiding fields and changing field title on Add a job page

Hi,

I would like to change the title of the field “min budget” to Budget per hour – I have searched the plugin files but can’t find what to change.

As well as this I would like to hide the fields “max budget” “completion date” and “attach specs for extra information”. I have inspected with firebug but can’t find the correct css class to hide this….

Thanks, btw I read on another thread that a custom fields update is in the works, any news if its imminent?

  • Tyler Postle
    • Recruit

    Hey Lukas,

    Hope you're doing well today!

    In order to hide the max budget field you will need to remove the validation for the field, otherwise it won't allow you to post without a value in that field. You can do that by posting the code @Hoang Ngo mentioned on this post: https://wpmudev.com/forums/topic/where-can-i-edit-the-single-job-and-hide-job-budget#post-799803

    You will want to add this code to your functions.php:

    add_filter('je_job_validation_rules', 'custom_jobs_validate');
    function custom_jobs_validate($rules){
    unset($rules['budget']);
    return $rules;
    }

    Then to hide just the Max budget field, you can use this CSS:

    .form-group:nth-child(8) {
    display: none;
    }

    To remove the attachment and specs field you can use this CSS:

    .col-md-12 {
    display: none;
    }

    As for changing "Min Budget" to "Budget Per Hour" you can use our Ultimate Branding plugin and it's Network wide text change module :slight_smile:

    Once active you can fill in the fields as you see in my screenshot. That will change the text for you.

    Also on the add expert page:

    how do I hide the "company" field as well as the "Attach specs examples or extra information" field? again just can't seem to get the css quite right.

    To remove the "Company" field and attach specs field on the experts page you can use this CSS:

    .jobs-expert-form .row:nth-child(2) {
    display: none;
    }

    For the "completion date" field I'll need to call in one of our coding experts because that one involves validation code as well. Our SLS staff(coding experts) usually take a little longer to reply on threads because they deal with more advanced issues.

    Hope this helps! Let us know if you have further questions in the meantime.

    All the best,

    Tyler

    [attachments are only viewable by logged-in members]

  • Lukas Feddern
    • Site Builder, Child of Zeus

    Hi Tyler,

    Thanks for getting back to me, just a couple problems:

    The code

    `.jobs-expert-form .row:nth-child(2) {

    display: none;

    }`

    also hides the “tag line field” .how would I get it to hide company and spec but not the tag field?

    The code

    .col-md-12 {
    display: none;
    }

    also hides the avatar on the profile page, I tried to select the id of the specs box and hide it that way using:

    #55d9a0dfe7521 {
    display: none;
    }

    but doesn’t seem to work. Thanks for your help, everything else works great.

  • Hoang Ngo
    • The Green Incsub

    Hi @Lukas Feddern,

    I hope you are well today.

    Because the expert fields(Company,Location, etc) don’t have any specific ID or class name, so it hard to styling in specific way. But we can use the custom template method. Here ist he steps:

    1.Please add this code to your theme functions.php or use mu-plugins

    add_filter( 'ig_view_file', 'custom_expert_form', 10, 2 );
    function custom_expert_form( $path, $view ) {
    if ( $view == 'expert-form/main' ) {
    $path = WP_CONTENT_DIR . '/custom_expert_form.php';
    }

    return $path;
    }

    2. Please download the attachment, extract it and copy it to /wp-content/custom_expert_form.php

    So now, both fields will be hided :slight_smile:

    If you have any additional issues, please let us know and we’ll be happy to help.

    Best regards,

    Hoang