Notifications
Clear all

Script [Solved] Javascript code into posts

4 Posts
2 Users
0 Reactions
228 Views
Posts: 2
 imel
Topic starter
(@imel)
New Member
Joined: 1 month ago

Hello,

I want to add custom JavaScript code into forum posts in my website with wpForo.
If i add the code into source code option in the toolbar it gets deleted and not applied.

Please advise, is this a feature not supported in wpForo forums? 

3 Replies
Sofy
Posts: 5124
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi,

Check out this article: https://www.wpbeginner.com/wp-tutorials/how-to-easily-add-javascript-in-wordpress-pages-or-posts/

Posts: 2
 imel
Topic starter
(@imel)
New Member
Joined: 1 month ago

Hello,
Thank you for the article but i need to add javascript into topic content in wpforo. Please see screenshot attached. If i add the javascript code inside <script> tag into source code option in the toolbar it gets deleted and not applied.
I have added the script tag into Dashboard > WpForo > Settings > Post Content >  Allow extra HTML tags, and it is still refused.

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

Support Team
Posts: 5124

@imel 

wpForo doesn't allow adding scripts in posts, as this could lead to spam and potentially harm your website.