NooTheme Premium WordPress Theme › Forums › JobMonster › Apply button and Contact consultant button
Tagged: #button #consultant #contact
- This topic has 13 replies, 2 voices, and was last updated 3 months, 4 weeks ago by Jackie.
-
AuthorPosts
-
7 months ago #1221204
Hello, in order to keep the barriers for the applicant as low as possible, we would like to give the applicant the opportunity to contact our consultant in advance.
Can I somehow put a button next to the Apply button that leads to the corresponding consultant or to a separate page with a contact form?
We would prefer the former, if possible? This should not disappear with the next update for JobMonster...
Many thanks for your help!
Attachments:
You must be logged in to view attached files.6 months, 2 weeks ago #1221213Hi.
Thank you for contacting us.
If you want to have the contact button for all the job details page, you can edit the source code on this file:
wp-content/themes/noo-jobmonster/layouts/job/single/detail.php line 91
wp-content/themes/noo-jobmonster/layouts/job/single/detail-style-2.php line 270
wp-content/themes/noo-jobmonster/layouts/job/single/detail-style-3.php line 173
wp-content/themes/noo-jobmonster/layouts/job/single/detail-style-4.php line 171
under the endif code, you can add the custom code below for the button.
<a class="btn btn-primary" href="#yourlink" rel="nofollow noopener" target="_blank"><?php echo esc_html_e('Contact Us') ?></a>
Please recheck it.
Regards.
6 months, 2 weeks ago #1221215Hello Jackie,
thank you very much, I will try that!
I'll let you know again as soon as I've put it in.Have a wonderful day!
6 months, 2 weeks ago #1221217Hello Jackie,
that works great, can I put a mailto link there that is linked to a separate custom field?Sorry, I'm not that good at programming yet.
6 months, 1 week ago #1221235Hi.
I think you can create a custom field Email for each job like this: https://prnt.sc/TBhLRj8gP6Sl
Then you can use that field for the new button as you want.
To create that field, you need to edit the source code in this file: /wp-content/themes/noo-jobmonster/framework/job/admin-job-edit.php underline 83 add the source code:
array( 'id' => '_email_custom', 'label' => __( 'Custom Email', 'noo' ), 'type' => 'text', 'desc' => __( '', 'noo' ) ),
To get the value of the custom field on the job, you can use the source code below:
$email_custom = noo_get_post_meta( $job_id, '_email_custom', '' );
I hope that can help you.
Regards.
6 months ago #1221248A thousand thanks Jackie,
I will try this and hope that I can do it!
Have a sunny day! 😊☀6 months ago #1221251Hello Jackie,
the additional e-mail field has worked,
but where exactly does this code $email_custom = noo_get_post_meta( $job_id, '_email_custom', '' ); go in detail-style-4.php?
I have inserted the code after <?php endif; ?> in line 171, but this does not work.
Which code do I include there exactly?I think it could be like this if I have included it correctly!
5 months, 4 weeks ago #1221261Hi.
I have added this code under line 171 in the details-style-4.php, it still works fine.
<?php $email_custom = noo_get_post_meta( $job_id, '_email_custom', '' ); echo $email_custom; ?>
Please check your source code again.
Regards.
5 months, 4 weeks ago #1221266Hello Jackie, that's how it looks for me. But I just wanted the advisor to be accessible via a button. You click on the button and the e-mail window opens with the e-mail of the separately stored advisor. We had said in advance that it should be a button...
Attachments:
You must be logged in to view attached files.5 months, 3 weeks ago #1221273Yes, that source code helps you get value from the custom_email field. You need to add that value to the href attribute in the PHP code below.
<a class="btn btn-primary" href="#yourlink" rel="nofollow noopener" target="_blank"><?php echo esc_html_e('Contact Us') ?></a>
Please recheck it.
Regards.4 months, 1 week ago #1221311Hello Jackie,
it has now worked.
" rel="nofollow noopener" target="_blank"><?php echo esc_html_e('Kontaktieren Sie einen Berater') ?>
If the field remains empty (blank), it should not display the button. How can I fix this? Please send me the related code before I have to spend a long time trying to figure out where to put it.
Thank you
4 months, 1 week ago #12213124 months, 1 week ago #1221313Hello Jackie,
it has now worked.
If the field remains empty (blank), it should not display the button. How can I fix this? Please send me the related code before I have to spend a long time trying to figure out where to put it.
Please also send me a screenshot of the code, as your platform cuts off the codes arbitrarily!
Thank you3 months, 4 weeks ago #1221336Hi.
You can use the if (!empty($email_custom)) to check the empty value for that custom field before to display the button.
Please recheck it.
Regards.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.