Notifications
Clear all

[Closed] Clickable forum icon => forum

3 Posts
2 Users
3 Reactions
563 Views
Posts: 93
Topic starter
(@nutritionchat)
Estimable Member
Joined: 4 years ago

Feature suggestion, please, for the Threaded Layout.

It would be useful if these icons were clickable => forum.

2 Replies
Tutrix
Posts: 1493
(@tutrix)
Noble Member
Joined: 5 years ago

@nutritionchat

open the forum-thread.php
wpforo > themes > 2022 > layouts > 4 > forum-thread.php

and replace (line 28)

<i class="<?php echo $thread['forum']['icon'] ?>" style="color: <?php echo $thread['forum']['color'] ?>"></i>

with

<a href="<?php echo esc_url($thread['forum']['url']); ?>"><i class="<?php echo $thread['forum']['icon'] ?>" style="color: <?php echo $thread['forum']['color'] ?>"></i></a>
1 Reply
(@nutritionchat)
Joined: 4 years ago

Estimable Member
Posts: 93

Amazing, @tutrix - thanks for this quick hack - it works perfectly ! 😎 

(And it only works on the main forum listing too, exactly as required).