Notifications
Clear all

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

6 Posts
3 Users
2 Reactions
2,015 Views
Posts: 15
Topic starter
(@yahoyaho)
Eminent Member
Joined: 6 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: 6 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: 8 years ago

Support Team
Posts: 5509

@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: 6 years ago

Eminent Member
Posts: 15

@sofy Wow thanks for your supports!! πŸ˜€ Have a good day:)

 


Posts: 22
 aung
(@aung)
Eminent Member
Joined: 5 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: 8 years ago

Support Team
Posts: 5509

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