1. Home
  2. Docs
  3. weDocs
  4. Developer Docs
  5. Templating

Templating

The plugin comes with few templates on its own for documentation. Templating system of the plugin enables you to override the default templates from within your theme.

The templates can be found on the templates directory of the plugin (/wedocs/templates), which includes:

  • content-feedback.php
  • docs-sidebar.php
  • shortcode.php
  • single-docs.php

To override those templates, create a folder named wedocs in your current themes folder and you can override the files from the templates of weDocs.

For example, copy /wedocs/templates/single-docs.php to /your-theme/wedocs/single-docs.php and make the required changes. You’ll see the changes in the frontend. This way you can override the plugin without modifying the plugin core, which might be replaced upon updates.

How can we help?