Notifications
Clear all

[Closed] Clickable forum icon => forum

3 Posts
2 Users
3 Likes
153 Views
Posts: 56
Topic starter
(@nutritionchat)
Trusted Member
Joined: 3 years ago

Feature suggestion, please, for the Threaded Layout.

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

2 Replies
Posts: 880
(@tutrix)
Noble Member
Joined: 3 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: 3 years ago

Trusted Member
Posts: 56

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

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