• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.
Change the Discussion Text Link

Change the Discussion Text Link

Compatible XenWord Versions
2.4
Compatible WP Versions
  1. 4.2
Compatible XF Versions
  1. 1.4
It's possible to change the class-xenword-thread-link.php so that the comment count is included in the link to the discussion thread.

This is the overall look.

Screen Shot 2015-05-10 at 10.58.57 AM.png


Open class-xenword-thread-link.
Look for the $xenword_thread_link
Replace with the following

PHP:
$xenword_thread_link
    = '<br /><a href=" '
     . XenForo_Link::buildPublicLink( 'canonical:threads',
        $link )
     . XenWord::getThreadIdForPost( $post_id )
     . '" class="xenword_discuss">'
     . '<i class="fa fa-comments"></i> '
     . get_comments_number_text()
     . '</a>';

Now the link contains the comment count as well as the text comments rather than discussion text.

You'll next want to make adjustments in the WordPress theme so that comments are not shown. Make these changes in a child theme and not the original.
  • Like
Reactions: Paul and Albert
Author
Gracie
Views
500
First release
Last update
Rating
0.00 star(s) 0 ratings
Top