Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

Script [Solved] Javascript code into posts

4 Posts
2 Users
0 Reactions
397 Views
Posts: 2
 imel
Topic starter
(@imel)
New Member
Joined: 6 months 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: 5483
 Sofy
Admin
(@sofy)
Support Team
Joined: 8 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: 6 months 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: 8 years ago

Support Team
Posts: 5483

@imel 

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