Customize Simple Job Board Plugin

Published on April 18th, 2020

By


Looking to make your website with a Job board feature? The Simple job board plugin is one of the best job board plugin for WordPress. We reviewed many free WordPress job board plugins, as we had a client looking for a Job board feature on their WP driven website, most of them were just a time-waster as features present in free version were so limited and worse settings couldn’t be modified.

Although we had to modify the WordPress simple job board plugin to suit our needs, it has flexible settings to make the job board rich and fully functional. Some job board plugins we tested didn’t have a form for the candidates to apply, some would just display an email address on which candidates can send their application, and some others were just a way to post job opening only.

The Job page dedicated to displaying all the job has a top search filter section which is an integral part of the job listing module. We were required to list the latest jobs on the homepage and thought to use job listing shortcodes to display a limited number of jobs. But using shortcode also displayed the top job filter section which was looking horrible on the homepage.

One way is to create a template page to query all the jobs and display the latest jobs but instead of going that way, we thought to modify the simple job board plugin and conditionally display the job filter box on all the pages except on the homepage.

The modified plugin file should be kept in your child-theme folder with the correct folder structure. For e.g your-child-theme/simple-job-board/customized-file-here. Customizing the original plugin files isn’t recommended as the modifications will be lost in the next update. Thus create a copy of the file and put it in the child theme folder to be safe.

As we had to display the jobs on the homepage, so we put a conditional logic to check if the current page is a homepage, front page or blog page etc to hide the top job filter section and only display jobs. The condition to check if the current page is a homepage or the front page is written in the #2 and this condition should be put in the file job-filter.php found in plugins/simple-job-board/templates/folder.

1. First find the below code in the job-filter.php file

$class = ( apply_filters('sjb_is_search_filters', sjb_is_keyword_search() || sjb_is_category_filter() || sjb_is_type_filter() || sjb_is_location_filter()) ) ? 'sjb-filters' : '';

2. Now please add the below set of codes after that. You are not required to add all of the if/else conditions.

<?php

if ( is_front_page() && is_home() ) {
// Default homepage

} elseif ( is_front_page()){
// Static homepage

} elseif ( is_home()){
// Blog page

} else{
?>

3. The “Else” condition should start just before the <div class=”<?php echo apply_filters(‘filters_form_class’, $class); ?>”> to display the jobs.

Thus with this little modification, the top job filter header section (shown above) will be hidden only on the pages you want. In our case, it was the homepage.

Let us know if you had to customize the plugin and how did you achieve it?

Customize Simple Job Board Plugin was last modified: April 18th, 2020 by WebNet Creatives

Comments are closed.