• Hello,
    I couldn’t add a comment section at the bottom of Page before. The comment only can works on Post.
    I’ve turned on any setup about comment in the Settings, but it still not work.
    To solve this problem, I downloaded the comment plugin – wpDiscuz. But the issue still not be solved.
    Finally, I added a comment block at the bottom of the Page through the Gutenberg editor, and it actually showed up on the page.
    But now we have a new problem. The comment widget cannot apply plugin styles. It is also can’t to modify the content. How can i change the content and style of the comment section on the Page?
    You can check the demo Page. https://www.tromox.com/en/exhibition-express/

    • This topic was modified 2 years, 3 months ago by jessehuang.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • I couldn’t add a comment section at the bottom of Page before. The comment only can works on Post.
    I’ve turned on any setup about comment in the Settings, but it still not work.
    To solve this problem, I downloaded the comment plugin – wpDiscuz. But the issue still not be solved.

    This is a theme issue: your Salient theme is only displaying the WordPress comment form on POSTs, and not on PAGEs.

    As the Salient theme is a commercial product, we are unfortunately unable to install it and offer any direct assistance. But the theme’s vendor recommends adding this custom PHP code to display the comment form on pages: https://themenectar.ticksy.com/article/3194/

    The wpDiscuz plugin’s author suggests a similar cause and solution here (scroll down to “FIXING TIP 5”): https://wpdiscuz.com/docs/wpdiscuz-7/getting-started/missing-comment-form/

    Either of the two solutions suggested above should fix your root problem.

    Finally, I added a comment block at the bottom of the Page through the Gutenberg editor, and it actually showed up on the page.
    But now we have a new problem. The comment widget cannot apply plugin styles. It is also can’t to modify the content. How can i change the content and style of the comment section on the Page?

    No, the comment block uses WordPress’ native comment form HTML elements that are styled by your theme… and the wpDiscuz plugin has its own HTML elements that are styled by the plugin. You can’t let the WordPress block inherit an arbitrary plugin’s style: you’ll have to manually write custom CSS code to replicate any style you want to inherit from the plugin.

    But, there’s a far easier solution you may be overlooking:

    Instead of using the WordPress comment block, you can use wpDiscuz’s own “Feeback Shortcode” block to insert the same wpDiscuz comment form at the end of the page — so you don’t have to bother dealing with styling differences at all.

    So, your options:

    1) Use either of the two custom PHP code suggestions (from your theme or wpDiscuz) to automatically insert the comment form on all pages, so you don’t have to manually insert the comment form on individual pages… OR

    2) Use the wpDiscuz “Feedback Shortcode” block to manually insert the wpDiscuz comment form (the same one you have at the end of POSTs) on individual pages.

    Good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘How do I change the style of the comment’ is closed to new replies.