Template structure & Overriding templates via a theme
Overview
JobBoardWP template files contain the markup and template structure for frontend and HTML emails of your sites.
When you open these files, you will notice they all contain hooks that allow you to add/move content without needing to edit template files themselves. This method protects against upgrade issues, as the template files can be left completely untouched.
Template files can be found within the jobboardwp/templates
directory:
How to Edit Files
Edit files in an upgrade-safe way using overrides. Copy the template into a directory within your theme named /jobboardwp
keeping the file structure according to the templates map.
Example: To override the member directory base template, copy: wp-content/plugins/jobboardwp/templates/single-job.php
to wp-content/themes/yourtheme/jobboardwp/single-job.php
The copied file will now override the JobBoardWP default template file.
Warning: Do not edit these files within the core plugin itself as they are overwritten during the upgrade process and any customizations will be lost.
Note: We recommend using child-theme, which hasn't dependencies with the official theme's repo, and all your custom files cannot be rewritten after a theme upgrade.
Templates Map
Plugin | Path | Template File |
---|---|---|
JobBoardWP | wp-content/themes/{active_theme}/jobboardwp/ |
single-job.php |
job-submission.php | ||
job-preview.php | ||
ajax-overlay.php | ||
dashboard/jobs.php |
||
job/company.php | ||
job/content.php | ||
job/footer.php | ||
job/info.php | ||
job/notices.php |
||
jobs/list.php | ||
jobs/search-bar.php | ||
jobs/wrapper.php | ||
js/jobs-dashboard.php | ||
js/jobs-list.php | ||
emails/base_wrapper.php | ||
emails/edited_job_waiting_approve.php | ||
emails/job_is_approved.php | ||
emails/job_is_edited.php |
||
emails/job_waiting_approve.php |
||
emails/new_job_posted.php |