Button application – point to URL
-
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]
- The topic ‘Button application – point to URL’ is closed to new replies.