sorry that should read GBP.
We do have some code snippets, we use Avada Theme.
https://attenti.co.uk/job/rspcaa/
<ul class="job-listing-meta meta">
<li class="location"><a class="google_map_link" target="_blank">Horsham/London</a></li>
<li class="date-posted"><time datetime="2023-04-24">Posted 2 weeks ago</time></li>
<li class="salary">Unremunerated USD / Year </li>
<li>Salary: £Unremunerated</li></ul>
We added this CSS last year when the USD issue started happening, without this CSS we see both USD and GBP
li.salary {
display: none !important;
}
the code snippets are needed because there is no options in Job Manager to set the salary field. previously these code snippets worked fine and USD was replaced with GBP, but then last year following your update to the plugin both fields started showing…
add_filter( 'submit_job_form_fields', 'frontend_add_salary_field' );
function frontend_add_salary_field( $fields ) {
$fields['job']['job_salary'] = array(
'label' => __( 'Salary (£)', 'job_manager' ),
'type' => 'text',
'required' => false,
'placeholder' => 'e.g. 20000',
'priority' => 7
);
return $fields;
}
add_filter( 'job_manager_job_listing_data_fields', 'admin_add_salary_field' );
function admin_add_salary_field( $fields ) {
$fields['_job_salary'] = array(
'label' => __( 'Salary (£)', 'job_manager' ),
'type' => 'text',
'placeholder' => 'e.g. 20000',
'description' => ''
);
return $fields;
}
-
This reply was modified 1 year, 6 months ago by JMaartenW.
-
This reply was modified 1 year, 6 months ago by JMaartenW.