Hi @jujutou ,
Per ww.wp.xz.cn community guidelines, we are not allowed to support premium plugins (paid add-ons, like Applications) in these forums.ย
Please use this form to get support for our paid add-ons:
https://wpjobmanager.com/support/
Thanks!
Hello,
Precisely, I do not use the premium plugins! I use the free version!
And I would like to be able to modify the application submission forum in the free version (to put my own form generated with Caldera form)
Hi @jujutou ,
The core free WP Job Manager plugin does not include an application submission form. The paid Applications addon includes one.
The only form provided by the core plugin is the job submission form, so could you clarify which one you mean?
best,
Cena
For example on this page of my site: https://cri1149.fr/poste/agent-de-laboratoire/
At the end of the job posting, there is a button marked “Postuler”.
Then a message opens indicating to write to the email address to apply.
I would like to replace this message with my home form.
I am looking for where this message is in the plugin files.
Hi @jujutou ,
Ah, I see, thank you.
To that will require custom code, which we don’t support.
However, basically, you’ll need to override the template of this file:
WP-Job-Manager/templates/job-application.php
We have some information about overriding templates here:
https://wpjobmanager.com/document/template-overrides/
Best,
Cena
Hello,
Thank you. I doubt you can help me modify the code.
But you helped me find the file to modify for this parameter. I could not identify the file that induced this function!
I managed to modify the code to insert my personal form!
Thank you !
(I don’t know if I have the right to explain how I made the change?)
Hi @jujutou ,
I’m glad that helped you!
It would be great if you could share how you made the change – other users might find it helpful, but of course that is up to you. ๐
Best,
Cena
Of course !
In the following file: WP-Job-Manager/templates/job-application.php
You have this code:
<?php if ( $apply = get_the_job_application_method() ) :
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 esc_attr_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; ?>
The following code is used to display the button under which this scrolls the text.
<input type=”button” class=”application_button button” value=”<?php esc_attr_e( ‘Apply for job’, ‘wp-job-manager’ ); ?>” />
and the following code is the message :
<div class=”application_details”>…</div>
So you just need to replace this code with your personal form code to embed it. And it works pretty well for me!
That’s what happens :
<?php if ( $apply = get_the_job_application_method() ) :
wp_enqueue_script( 'wp-job-manager-job-application' );
?>
<div class="job_application application">
<?php do_action( 'job_application_start', $apply ); ?>
<div class="bt-slide"><input type="button" class="application_button button" value="<?php esc_attr_e( 'Apply for job', 'wp-job-manager' ); ?>" /></div>
<div class="blockMasqueform">
<?php echo qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage("[:fr]".do_shortcode( '[caldera_form id="XXXXXXXXXX"]' )."[:][:en]".do_shortcode( '[caldera_form id="XXXXXXXXX"]' )."[:]");?>
</div>
<?php do_action( 'job_application_end', $apply ); ?>
</div>
<?php endif; ?>
Don’t pay attention to the “qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage”, because I’m using a language changer plugin. But you don’t need that to embed your form.
And I put XXXXX in the id of the house form (caldera form), you must put your personal id (or your other plugin)
Hi @jujutou,
Thanks for providing those steps! I’m sure they will be very helpful for the next user wanting to do something similar. I’m going to go ahead and close the thread now, but feel free to reach out again whenever you need to!