• rshay

    (@rshay)


    Hello, hope everyone’s well.

    I have the peepso community plugin installed on my site, peepso comments have a different class and therefor do not show up in the default wordpress comment widget and tab. How can I change the default WordPress comment class to the peepso class or at least add the peepso class alongside the default one? I believe the peepso class is either ps-comments or ps-js-comments . As for wordpress, i believe its wp_comment

    I appreciate it!

    • This topic was modified 2 years ago by rshay.
    • This topic was modified 2 years ago by rshay.
    • This topic was modified 2 years ago by rshay.
    • This topic was modified 2 years ago by rshay.
Viewing 1 replies (of 1 total)
  • Moin Uddin Ahmed

    (@moinrrahmed)

    To add the PeepSo class to the default WordPress comment widget and tab, you can utilize a filter hook to modify the comment class. To do this, you will need to add the following code to your theme’s functions.php file or a custom plugin:

    function add_peepso_comment_class($classes){
        $classes[] = 'ps-comments'; // or 'ps-js-comments'
        return $classes;
    }
    add_filter('comment_class', 'add_peepso_comment_class');
    

    This code will add the Peepso comment class (ps-comments or ps-js-comments) to the default WordPress comment class, thus ensuring that the comments will be displayed with the same styling as the Peepso comments.

    Note: To ensure that the changes take effect, be sure to clear your site’s cache after adding the code.

Viewing 1 replies (of 1 total)
  • The topic ‘How to change default comments class id’ is closed to new replies.