Adding JavaScript to Posts on Wordpress.com

  • Author
    Posts
  • #3226625

    I would like to use a simple javascript code in my post. Now I understand that, for security reasons, I can’t just add it into the HTML blocks, but I have found many other options on the web, for example saving the function in the functions.php file. Now I would like to know how to either access that file or use my javascript in any other working way, for which I don’t have to use a plugin.

    The blog I need help with is jahrinnamibia.wordpress.com.

    #3227110

    Hi there,

    For Security reasons, WordPress.com won’t allow adding embed code. This restriction put in place for malicious code which can disrupt any services.

    Adding javascript on the page is only available on Business Plan. You would need to upgrade to the Business plan for that functionality.

    You can read more about this here:

    https://en.support.wordpress.com/code/

You must be logged in to reply to this topic.