• Resolved shivaji

    (@shivaji)


    I know how to hide the total comment count by using CSS and even I can remove the problematic title=”0″ from the file “\wpdiscuz\themes\default\comment-form.php” but I am looking for a way to edit the text under the SPAN tag using some function. I will remove the TITLE attribute and replace it with Aria Label.

    <div class="wpd-thread-info "><span class="wpdtc" title="0">0</span> Comments </div>

    Any suggestion on how to do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support gVectors Support

    (@gvectorssupport)

    You should customize the file using the method provided here: https://wpdiscuz.com/docs/wpdiscuz-7/customization/custom-template-and-style/

    Such a nice plugin with so many features to manage comment but I would request the developer of this plugin to test this for any accessibility issues. In a clean install, try to test that blog comment page using https://wave.webaim.org/ and you will see many issues comes out.

    Thread Starter shivaji

    (@shivaji)

    Just today noticed one thing. I followed this method https://wpdiscuz.com/docs/wpdiscuz-7/customization/custom-template-and-style/ and it is working fine. I already made few changes.

    /wp-content/themes/mytheme/default/comment-form.php : Most of the changes I made in this PHP comment file are taking from our theme file and some changes are not working. So finally I made the changes to original source /wp-content/plugins/wpdiscuz/themes/default/comment-form.php and it works!

    This is peculiar. specially this section from comment-form.php:

    if ($wpdiscuz->options->thread_display["showReactedFilterButton"]) {
                                ?>
                                <div class="wpd-filter wpdf-reacted wpd_not_clicked" title="<?php echo esc_attr($wpdiscuz->options->phrases["wc_most_reacted_comment"]); ?>"><i class="fas fa-bolt"></i></div>
                                <?php
                            }
                            if ($wpdiscuz->options->thread_display["showHottestFilterButton"]) {
                                ?>
                                <div class="wpd-filter wpdf-hottest wpd_not_clicked" title="<?php echo esc_attr($wpdiscuz->options->phrases["wc_hottest_comment_thread"]); ?>"><i class="fas fa-fire"></i></div>
                                <?php
                            }
    • This reply was modified 3 years ago by shivaji.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Any PHP functions to edit comments count message?’ is closed to new replies.