• Resolved anouk_27

    (@anouk_27)


    https://wpjobmanager.com/document/customising-job-application-process/

    I have updated the job-application.php file as per below:

    As an example of customisation, a common request is to just make the ‘button’ link to the website or email address, rather than toggling open the instructions. This would be a simple case of overriding job-application.php and using this code inside it:
    <?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”>
    “><?php _e( ‘Apply for job’, ‘wp-job-manager’ ); ?>
    </div>
    <?php endif; ?>

    Where do I need to paste the URL?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor jonryan

    (@jonryan)

    Hi @anouk_27 you need to put this in the template override that is described in the documentation.

    Thread Starter anouk_27

    (@anouk_27)

    Hi Jonryan,

    I have already done that, but my question is where do I need to place the URL where the button needs to link to?

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    Your users, i.e. job posters, would paste URL in the same place they’ve always been pasting it: during the job posting process.

    Screenshot:

    https://d.pr/i/BmhNHC/24VswDTB

    Thread Starter anouk_27

    (@anouk_27)

    Hi Adam,

    Basically the button needs to point to our application form *We are a mediation agency for internships in South Africa, so for each internship vacancy they need to fill out an application form.*

    Hope that is making more sense now, so my question is where do I need to place the url of the application form within that code.

    Many thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Button application – point to URL’ is closed to new replies.