KB Support utilises template files to display content on the front end of your website. These files can be customised as described below.
The template files included within the KB Support plugin are all located within the
/plugins/kb-support/templates folder. If you were to update these files, they would be overwritten during the next plugin update and your changes would be lost. To avoid this, you can copy the files to an alternative location and KB Support will utilise them instead of its default files. You can then customise these files and they will not be overwritten during plugin updates.
The template files included within KB Support are;
|Outputs the submission form for a customer to submit a ticket
|Outputs a login form
|Outputs a page where the user can update their profile and their preferences
|Outputs a form enabling customers to register a WordPress user account
|Outputs a search form for searching through published KB Articles
|Outputs a page where customers can see a list of tickets they have submitted
|Outputs a page where a customer can view the details for a specific ticket
|Contains the CSS styles utilised by KB Support on the front end
|A minified version of the CSS styles utilised by KB Support on the front end. This is the stylesheet that is used by default
Note: our premium extensions may have additional template files included. Those files can be customised in the same way as described in this article.
KB Support will search in the following locations for its template files, in the order specified. Once a file is found, it uses that file and the search stops:
Copying Template Files
Before you make any changes to the template files, you should copy them to a location that will not be impacted by plugin and theme updates. This can be a child theme (recommended) or your parent theme.
Using a Child Theme
If you do not already have a child theme in place, you can view the instructions for how to create one on WordPress.org.
Once your child theme is active, create the
kbs_templates folder and copy the template files you wish to update into this folder.
You can now make any changes you would like to make and save the file. KB Support will now use these files instead of those default templates included within the plugin.
Was this article helpful?
We're working hard to ensure we provide you with useful and relevant documentation to help you get the most out of KB Support.
Please take a moment to let us know if you found this article helpful.