• Resolved ashmitchell

    (@ashmitchell)


    Hi there, quick question about how to change the pre-filled text in the Location field in both the Post Job and Post Resume fields.

    Currently there is greyed out text showing an example of location (eg London’ but for a job board located in Australia I’m hoping to change that to ‘eg Sydney’ in both the Post a Job and Post a Resume forms.

    Any help would be greatly appreciated. Thanks.

Viewing 1 replies (of 1 total)
  • Hello,

    There is no settings item for the fields, but it can be done with custom PHP code, using the submit_job_form_fields filter.

    Alternatively, you can install a localization plugin, like Loco Translate, create a new localization, and add a ‘translation’ for these texts.

    With the filter and code snippets, this one changes the location placeholder for jobs:

    add_filter( 'submit_job_form_fields', 'submit_job_form_fields_job_location_australia' , 11);
    
    function submit_job_form_fields_job_location_australia( $fields )
    {
    	$fields['job']['job_location']['placeholder'] = 'e.g. Sydney'; // Slug of the job type
    
    	return $fields;
    }

    And this one for resumes:

    add_filter( 'submit_resume_form_fields', 'submit_resume_form_fields_job_location_australia' , 11);
    
    function submit_resume_form_fields_job_location_australia( $fields )
    {
    	$fields['resume_fields']['candidate_location']['placeholder'] = 'e.g. Sydney'; // Slug of the job type
    
    	return $fields;
    }

    See the documentation page for more details about these filters:

    https://wpjobmanager.com/document/wpjm-core-snippets/

Viewing 1 replies (of 1 total)

The topic ‘Location example text – ‘eg London’’ is closed to new replies.