Change theme files

It is possible to overwrite theme files which are provided with the plugin. Each functionality provided with the OTYS WordPress plugin is using theme files which are provided within the plugin folder. It is possible to change (overwrite) these theme files by making a copy of the plugins theme files and placing the theme files within your own theme folder and changing the files.

How?

Navigate to the plugin view folder in your website, this folder should be located at [yourwebsite]/wp-content/plugins/otys-jobs-apply/app/views. Within this folder are all theme files located which are being used by the plugin.

To overwrite a theme file you can create a folder named 'otys-jobs-apply' in your own theme folder (this should look something like [yourwebsite]/wp-content/themes/[your-theme-name]/otys-jobs-apply) and copy a file from the plugin's view folder in there. The plugin will always prefer files in your theme folder above the view files in the plugin's folder.

Example

When you for example want to change the theme file of the [otys-vacancies-list] shortcode (so the vacancies list HTML) create a new folder in [yourwebsite]/wp-content/themes/[your-theme-name]/otys-jobs-apply called 'vacancies'. Now copy the file [yourwebsite]/wp-content/plugins/otys-jobs-apply/app/views/vacancies/vacancies-list.php to this folder.

Now you will be able to edit this file however you like. All theme files will have access to a variable $args this variable will contain all information available to this theme file. When you var_dump($args) you will see that there's allot more information available then there's initially displayed.