Template structure & Overriding templates via a theme

ForumWP template files contain the markup and template structure for frontend and HTML emails of your site's forum.

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 forumwp/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 /forumwp keeping the same file structure but removing the /templates/ subdirectory.

Example: To override the mention notification, copy: wp-content/plugins/forumwp/templates/emails/<br>mention.php to wp-content/themes/yourtheme/forumwp/emails/mention.php

Example: To override the individual topic template, copy: wp-content/plugins/forumwp/templates/<br>single-topic.php to wp-content/themes/yourtheme/forumwp/single-topic.php

The copied file will now override the ForumWP 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 official themes repo and all your custom files cannot be rewritten after a theme upgrade.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.