Notifications
Clear all

wpForo 1.x.x [Solved] Add a font icon to the title of forum.

6 Posts
3 Users
2 Likes
953 Views
yahoyaho
Posts: 15
Topic starter
(@yahoyaho)
Active Member
Joined: 3 years ago

Hi.

I would like to add a font icon to the title of forum. I tried it using <i class>, but it doesn't work.

I think there's a code regarding esc_attr or sanitizing something. Could you please allow admin to add html code on the title?

This is not a user-submitted part, so I think there's no problem to allow html code on back end.

Thank you.

Topic Tags
5 Replies
yahoyaho
Posts: 15
Topic starter
(@yahoyaho)
Active Member
Joined: 3 years ago

🙂

I meant here : https://imgur.com/a/mEvH7P3

When I add a font icon on the backend, it's sanitized to block custom html codes.

Reply
2 Replies
Sofy
 Sofy
Admin
(@sofy)
Joined: 5 years ago

Support Team
Posts: 4057

@yahoyaho,

We'll add a new hook for this in the next update. So you'll be able to insert an HTML before the forum title.

 

Reply
yahoyaho
(@yahoyaho)
Joined: 3 years ago

Active Member
Posts: 15

@sofy Wow thanks for your supports!! 😀 Have a good day:)

 

Reply
aung
Posts: 23
 aung
(@aung)
Eminent Member
Joined: 2 years ago

I'm wondering if the new hook to insert an HTML before the forum title has been added?

Reply
1 Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 5 years ago

Support Team
Posts: 4057

@aung,

You can customize the  topic.php file in the wp-content/plugins/wpforo/wpf-themes/classic/ folder and add the changes you like. 

The update safe way of the customization is described here:  https://wpforo.com/docs/root/forum-themes/theme-customization/

Reply