• Resolved JMaartenW

    (@jmaartenw)


    the previous thread on this topic was closed 8 months ago but the issue still remains for us..

    if we don’t use CSS (which is the only option we have) then we see both USD and GBP salary fields on job listings. despite the last comment on this in the previous thread, there are no “settings” for us to change this.

    I’ll happily share screenshots below

    • This topic was modified 1 year, 7 months ago by JMaartenW.
    • This topic was modified 1 year, 7 months ago by JMaartenW.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @jmaartenw

    USD is the default salary unit:

    Screenshot on 2023 05 04 at 12 45 58

    You can set this when you add a job:

    Screenshot on 2023 05 04 at 12 48 11

    Alternatively, for existing jobs, it can be removed in the backend for each job.

    If you need to share a screenshot, you can follow these instructions.

    Thread Starter JMaartenW

    (@jmaartenw)

    it doesn’t make sense what you’re saying, the default is already GBP

    The issue is that the GDP price is showing fine, but the orgional issue about this was the fact that USD appeared as well with no options to hide it other then CSS… The CSS provided by Automattic was given as a temporary work around at the time but it’s still required

    I cannot provide screenshots or links to dropbox screen capture links here.

    Hi @jmaartenw

    Can you provide more information on how you have implemented the price in GDP? This is probably inserted by your theme, or using a code snippet as you mentioned.

    You can attach a screenshot using Imgur or Snipboard.

    Looking forward to your reply.

    Thread Starter JMaartenW

    (@jmaartenw)

    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.

    Hi @jmaartenw

    Thanks for providing those details! Here’s the code snippet you can use to change the currency to GBP on your website (you can get rid of all the other snippets and CSS codes):

    add_filter( 'wpjm_job_salary_currency', function( $currency ) {
      return 'GBP';
    } );

    I tested this on my website using the Twenty Twenty-Two theme without any further CSS changes, and confirmed it only showed the GBP currency.

    If for some reason you still see the USD currency after that, this means that it’s being inserted by your theme for some reason.

    Best,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘All salaries are now showing USD / YEAR after salary – how to remove?’ is closed to new replies.