• Resolved aaron843

    (@aaron843)


    Is it possible to have the “Apply for job” go directly to the link url in a single click? Currently clicking the button just opens a link, requiring a second click.

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

    (@helizabethan)

    Hi there,

    If you want your button to go directly to a URL instead of opening out the ‘apply’ box, you can override job-application.php and make it contain the following code instead:

    <?php if ( $apply = get_the_job_application_method() ) : ?>
      <?php if ( 'url' === $apply->type ) : ?>
        <div class="job_application application">
          <a href="<?php echo esc_url( $apply->url ); ?>" class="application_button button" target="_blank" rel="nofollow">Apply Now</a>
        </div>
      <?php else : ?>
        <?php wp_enqueue_script( 'wp-job-manager-job-application' ); ?>
        <div class="job_application application">
          <?php do_action( 'job_application_start', $apply ); ?>
         
          <input type="button" class="application_button button" value="<?php _e( 'Apply for job', 'wp-job-manager' ); ?>" />
         
          <div class="application_details">
            <?php
            /**
             * job_manager_application_details_email or job_manager_application_details_url hook
             */
            do_action( 'job_manager_application_details_' . $apply->type, $apply );
            ?>
          </div>
          <?php do_action( 'job_application_end', $apply ); ?>
        </div>
      <?php endif; ?>
    <?php endif; ?> 
    

    You can take a look at our documentation page here if you want more details.

    Plugin Support Jay

    (@bluejay77)

    Hi there,

    It has been a while since we have heard from you, so I’m marking this topic as resolved.

    But if you have any further questions or need some more help, you’re welcome to reply here or open another thread.

    kamalpandey007

    (@kamalpandey007)

    Hello, I tried adding the above code using code snippet. However, the site crashes as i activate the code. Let me know how to open job post directly after clicking on “Apply for job” button.

    Plugin Support Elizabeth (a11n)

    (@helizabethan)

    Hi @kamalpandey007,

    Instead of adding the code using the code snippet plugin, you’ll need to override the WP Job Manager template file by copying it into your theme. Here’s how you can do it:

    1. Go to the Plugins Folder > WP Job Manager > Templates folder.
    2. Copy the Templates folder.
    3. Paste it into your Theme folder.
    4. Rename the pasted Templates folder to job_manager.
    5. Open the job_manager folder in your theme.
    6. Edit any of the template files as needed. In your case, open the job-application.php file.
    7. Copy the code above and add it to this file, replacing the existing code.

    You can also watch the video here to see how to do it.

    If you have any questions or need further assistance, feel free to ask!

    @helizabethan Thank you.

    This works.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.