1. Home
  2. Docs
  3. wpDiscuz 5 Documentation
  4. Customization
  5. Custom Template and Style
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Custom Template and Style

wpDiscuz allows you to customize comment list design and overwrite styles.  Template files are:

  • /wpdiscuz/assets/css/wpdiscuz.css (Style / Colors / Backgrounds …)
  • /wpdiscuz/templates/comment/class.WpdiscuzWalker.php (Layout, HTML structure)

You can edit these files in an upgrade-safe way using overrides. Just copy the wpdiscuz.css or class.WpdiscuzWalker.php file to a folder within your current active WordPress theme named /wpdiscuz/ and start to customize.
Target location of wpDiscuz template files:

  • /wp-content/themes/mytheme/wpdiscuz/wpdiscuz.css
  • /wp-content/themes/mytheme/wpdiscuz/class.WpdiscuzWalker.php

The copied files will now automatically override the wpDiscuz default template files. All changes in this file will not be lost on plugin update.
Do not edit these files within the core plugin itself as they are overwritten during the upgrade process and any customizations will be lost.


Was this article helpful to you? Yes 25 No 2