Customizing Current Theme Templates
- Create a child theme. See steps on how here
- Copy your active theme’s single.php file into the child theme folder. In some cases you need to create a sub-directory called “kb-templates” for the theme files.
- Rename the single.php to: single-epkb_post_type_1.php
- In the single-epkb_post_type_1.php file make any changes required e.g. you can remove the sidebar code and apply any CSS that will fix any layout issues.
From here you will need to edit this file according to your theme.
Always remember to back up your website before making any changes or better yet, make the changes on a staging site where you can test your changes without affecting your production site.
Child Theme using Hello Elementor
We have developed a very basic child theme that demonstrates the ability to create your own custom templates. This child theme is based on the Hello Elementor theme. We chose this theme because it’s very basic and it allows you to easily see the code and the output.
The structure is based on WordPress Template structure, your theme might have chosen a different way to display it. If that is the case you will need to learn that theme and how it works. We do NOT provide support for this level of customization.
Here is the article you need to follow: Template Hierarchy and you will need to coordinate with your theme company if you want help with their template structure.
This child theme is a proof of concept that shows you it is possible to create Knowledge base templates, but it will take a PHP developer who is familiar with WordPress to understand how to make it work between the KB and the theme you have chosen.
Make sure you have
- Backed up your website or test this on your staging site
- Hello Elementor Installed https://wordpress.org/themes/hello-elementor/
- Hello Elementor Child theme Installed and activated.
- Echo Knowledge based Installed and activated
- Then load the front end of the KB to see the custom HTML examples. ( Highlighted in Yellow )
- Switch Between Current theme or KB Theme options in the Global Wizard to see which template works best for you.
Good luck with your project!