Notifications
Clear all

Editing comment-form.php

2 Posts
2 Users
0 Reactions
5,111 Views
(@mcguffin)
Member Customer
Joined: 8 years ago
Posts: 38
Topic starter  

Why can't we edit the comment-form.php the same way we can the class.WpdiscuzWalker.php file?

 

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

  • /wpdiscuz/assets/css/wpdiscuz.css (Style / Colors / Backrounds …)
  • /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.


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4213
 

Because comment form is already editable. wpDiscuz comes with Custom Comment Form creation API. You can create different forms with different fields for different post types. There is no a static comment form, so there is no way to edit it as a template file. Comment forms are dynamic data, and they are being created and managed through Dashboard > Comments > Forms admin page.


   
ReplyQuote
Share:
Scroll to top