Title: Apply Button bug
Last modified: June 28, 2023

---

# Apply Button bug

 *  Resolved [meo8](https://wordpress.org/support/users/meo8/)
 * (@meo8)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/apply-button-bug/)
 * The “Apply for job” button, when clicked on, is not showing the correct URL.
 * In this case, it’s showing [unitedwaynefl.org](https://unitedwaynefl.org/careers/apply/),
   when it should be showing [https://unitedwaynefl.org/careers/apply/](https://unitedwaynefl.org/careers/apply/).
 * Additionally, is there a setting to allow user click of the “Apply for job” button
   to go directly to the link instead?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fapply-button-bug%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [hastibe](https://wordpress.org/support/users/hastibe/)
 * (@hastibe)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/apply-button-bug/#post-16859304)
 * I noticed that clicking on the link will actually take you to your application
   form, but that it’s showing only the domain name of your site in the link, like
   you note above–I’m not sure if that is intended or not, so I’ll let someone else
   chime in on that.
 * However, you can modify the behavior of the “Apply for job” button so that clicking
   on it will take someone directly to your application form. You can do this by
   overriding the job-application.php template file (see here for details on overriding
   template files: [wpjobmanager.com/document/template-overrides](https://wpjobmanager.com/document/template-overrides/))
   and then pasting the code in the box under the “Customising the job application
   templates” section on this page ([wpjobmanager.com/document/customising-job-application-process](https://wpjobmanager.com/document/customising-job-application-process/))
   over most of the job-application.php template override file.
 * You can find some additional discussion and the text of exactly what the job-
   application.php template file override should contain here, too: [wordpress.org/support/topic/open-apply-url-directly-without-instructions/#post-16730862](https://wordpress.org/support/topic/open-apply-url-directly-without-instructions/#post-16730862).
 * Hope this is helpful, and happy to provide more step-by-step detail, depending
   on your familiarity with doing this, too.
 *  Plugin Support [lastsplash (a11n)](https://wordpress.org/support/users/lastsplash/)
 * (@lastsplash)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/apply-button-bug/#post-16866355)
 * Hi [@meo8](https://wordpress.org/support/users/meo8/) –
 * The generous response shared by [@hastibe](https://wordpress.org/support/users/hastibe/)
   is what you would want to do to override the behavior of that button.
 * If you want to change it to display the full URL instead of just the domain, 
   you would need to override the `job-application.php` template file. Specifically
   the line:
 * `<?php echo esc_html( wp_parse_url( $apply->url, PHP_URL_HOST ) ); ?>`
 * Per [our support policy](https://wpjobmanager.com/support-policy/), we can’t 
   provide additional assistance with customizing templates. If you still need help,
   I’d recommend reaching out to a developer via:
 * [https://jobs.wordpress.net](https://jobs.wordpress.net)
 * Since there isn’t a setting for this and it requires custom code, I’m going to
   mark this thread as resolved.
 *  Thread Starter [meo8](https://wordpress.org/support/users/meo8/)
 * (@meo8)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/apply-button-bug/#post-16876445)
 * Thank you all for your help! Per your instructions, this was the steps I took:
    1. [Template override](https://wpjobmanager.com/document/template-overrides/) by
       creating a folder called job_manager within the theme directory.
    2. Copy/paste the **job-applications.php** file (from the plugin directory called
       template) to the new job_manager folder.
    3. Replaced the code original code in that file to the one below to allow the apply
       button to go directly to the link instead.
 *     ```wp-block-code
       <?php if ( $apply = get_the_job_application_method() ) :
         if ( $apply->type === 'url' ) {
             $application_href = $apply->url;
         } elseif ( $apply->type === 'email' ) {
             $application_href = sprintf( 'mailto:%1$s%2$s', $apply->email, '?subject=' . rawurlencode( $apply->subject )  );
         }
         ?>
         <div class="application">
           <a class="application_button button" href="<?php echo $application_href; ?>"><?php _e( 'Apply for job', 'wp-job-manager' ); ?></a>
         </div>
       <?php endif; ?>
       ```
   
 *  Plugin Support [lastsplash (a11n)](https://wordpress.org/support/users/lastsplash/)
 * (@lastsplash)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/apply-button-bug/#post-16886803)
 * Thanks for sharing how you got this to work. It might help someone in the future
   🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Apply Button bug’ is closed to new replies.

 * ![](https://ps.w.org/wp-job-manager/assets/icon-256x256.gif?rev=2975257)
 * [WP Job Manager](https://wordpress.org/plugins/wp-job-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-job-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-job-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-job-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-job-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-job-manager/reviews/)

## Tags

 * [apply for job](https://wordpress.org/support/topic-tag/apply-for-job/)
 * [submit button](https://wordpress.org/support/topic-tag/submit-button/)

 * 4 replies
 * 3 participants
 * Last reply from: [lastsplash (a11n)](https://wordpress.org/support/users/lastsplash/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/apply-button-bug/#post-16886803)
 * Status: resolved