remove 'budget' and 'open for' in Job posting

Hi,

i would like the posting to stay as long as it is. I don't require 'budget' and 'open for' to be shown on the job posting. how can i do that?

  • calvinrogercanas

    Hi Adam,

    Thanks for the question.

    First, this will be wiped out when you update the plugin and you still need to put some dummy value if you are adding new jobs.

    FTP / cPanel to your server then navigate to /public_html/wp-content/plugins/jobs-plus/app/views/job-single/main.php

    then replace all code with the cod below:

    <div class="ig-container">
        <div class="hn-container">
            <div class="jbp-job-single">
                <div class="row hn-border hn-border-round jobs-meta">
    
                    <div class="col-md-9 jobs-meta-row">
                        <h5><?php _e('Must be completed by', je()->domain) ?></h5>
                        <?php if (strtotime($model->dead_line)): ?>
                            <small
                                class="text-warning"><?php echo date_i18n(get_option('date_format'), strtotime($model->dead_line)); ?></small>
                        <?php else: ?>
                            <small class="text-warning"><?php _e('N/A', je()->domain) ?></small>
                        <?php endif; ?>
                    </div>
                    <div class="col-md-3 jobs-meta-row">
                        <?php if (strtolower($model->get_due_day()) != 'expired'): ?>
                            <?php if (JobsExperts_Helper::is_user_pro(get_current_user_id())): ?>
                                <?php ob_start(); ?>
                                <a class="btn btn-info btn-sm jbp_contact_job" href="<?php echo add_query_arg(array(
                                    'contact' => get_post()->post_name
                                ), apply_filters('jbp_job_contact_link', get_permalink(je()->pages->page(JE_Page_Factory::JOB_CONTACT)), get_the_ID())) ?>"><?php _e('Contact', je()->domain) ?></a>
                                <?php $content = ob_get_clean();
                                echo apply_filters('jbp_job_contact_btn', $content, $model);
                                ?>
                            <?php else: ?>
                                <a class="btn btn-info btn-sm"
                                   href="<?php echo get_permalink(je()->pages->page(JE_Page_Factory::EXPERT_ADD)) ?>"><?php _e('Become Expert', je()->domain) ?></a>
                            <?php endif; ?>
                        <?php else: ?>
                            <a disabled class="btn btn-info btn-sm"
                               href="#"><?php _e('Contact', je()->domain) ?></a>
                        <?php endif; ?>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="row job-content">
                    <div class="col-md-12">
                        <?php echo(JobsExperts_Helper::jbp_html_beautifier($model->description)) ?>
                    </div>
                    <div class="col-md-12">
                        <?php
                        $skills = $model->skills;
                        if (!empty($skills)): ?>
                            <div class="job_skills">
                                <?php
                                echo get_the_term_list($model->id, 'jbp_skills_tag', __('<h4>You will need to have these skills:', je()->domain) . '</h4><ul><li>', '</li><li>', '</li></ul>')
                                ?>
                            </div>
                        <?php endif; ?>
                    </div>
                </div>
                <?php do_action('je_job_single_before_attachments', $model) ?>
                <div class="row">
                    <div class="col-md-12">
                        <?php
                        $files = array_unique(array_filter(explode(',', $model->portfolios)));
                        if (!empty($files)): ?>
                            <div class="row-fluid full">
                                <div class="page-header">
                                    <label><?php _e('Sample Files', je()->domain) ?></label>
                                </div>
                                <?php
                                ig_uploader()->show_media($model, 'portfolios');
                                ?>
                                <div class="clearfix"></div>
                            </div>
                        <?php endif; ?>
                    </div>
                </div>
    
                <div class="row">
                    <div class="col-md-12">
                        <?php if ($model->is_current_owner()): ?>
                            <br/>
                        <?php $post = get_post($model->id);
                        $var = $post->post_status == 'publish' ? $post->post_name : $post->ID;
                        ?>
                            <a class="btn btn-primary"
                               href="<?php echo add_query_arg(array('job' => $var), apply_filters('job_edit_button_link', get_permalink(je()->pages->page(JE_Page_Factory::JOB_EDIT)))) ?>">
                                <?php _e('Edit', je()->domain) ?>
                            </a>
                            <form class="frm-delete" method="post" style="display: inline-block">
                                <input name="job_id" type="hidden" value="<?php echo $model->id ?>">
                                <?php wp_nonce_field('delete_job_' . $model->id) ?>
                                <button name="delete_job" class="btn btn-danger"
                                        type="submit"><?php _e('Trash', je()->domain) ?></button>
                            </form>
                            <script type="text/javascript">
                                jQuery(document).ready(function ($) {
                                    $('.frm-delete').submit(function () {
                                        if (confirm('<?php echo esc_js(__('Are you sure?',je()->domain)) ?>')) {
    
                                        } else {
                                            return false;
                                        }
                                    })
                                })
                            </script>
                        <?php endif; ?>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>

    the other way is using CustomPress then create your own Custom Post Type and add custom fields for the custom post type you created but for this you need to know templating so you can have your own style for this post type.

    Usage section of custompress will keep you going https://premium.wpmudev.org/project/custompress/#usage

    Let me know if it helps!

    Kind Regards,
    Calvin

  • Tyler Postle

    Hey Adam,

    Hope you don't mind me chiming in here! Our developer has posted a similar solution here that doesn't involve editing any core files.

    Basically, what you want to do is this:

    Add the following snippet to your themes functions.php file or as an mu-plugin:

    add_filter('je_job_validation_rules', 'custom_jobs_validate');
    function custom_jobs_validate($rules){
    unset($rules['budget']);
    return $rules;
    }

    This removes the validation from the budget field so it doesn't force it to have a value and then we can just hide the field on the frontend with some CSS so it's not even an option in the frontend form

    Here is the CSS:

    .pull-right {
      display: none;
    }
    
    .col-md-3.jobs-meta-row:nth-child(1), .col-md-3.jobs-meta-row:nth-child(2) {
      display: none;
    }
    
    .ig-container .form-horizontal .form-group:nth-child(7), .ig-container .form-horizontal .form-group:nth-child(8) {
      display: none;
    }

    Add that to your custom stylesheet or you can use this plugin here if you don't have a custom stylesheet: https://wordpress.org/plugins/simple-custom-css/

    That will also remove the display of the "Open for: " after posting - selecting an "open for" value is still required because it needs a date set in order for the job to still be open, otherwise soon as you post it would just be expired. Does that work?

    Hope this helps! Let us know if you need any further assistance.

    All the best,
    Tyler