Notifications
Clear all

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

6 Posts
3 Users
2 Reactions
1,490 Views
Posts: 15
Topic starter
(@yahoyaho)
Eminent Member
Joined: 4 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
Posts: 15
Topic starter
(@yahoyaho)
Eminent Member
Joined: 4 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.

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

Support Team
Posts: 4439

@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.

 

(@yahoyaho)
Joined: 4 years ago

Eminent Member
Posts: 15

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

 

Posts: 22
 aung
(@aung)
Eminent Member
Joined: 3 years ago

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

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

Support Team
Posts: 4439

@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/