WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Editing templates, Javascript, 403 Forbidden Error

[Resolved] Editing templates, Javascript, 403 Forbidden Error

  • Hey all,

    I’m a new user, the blog was pretty easy to set up, but I’m running into a bit of a snag. I’m editing the templates to make the blog fit with the rest of my site, and whenever I add a <script> tag (whether it’s embedded Javascript or a link to a separate file, I’ve tried both), whenever I try to save the template, I get a 403 Forbidden error. Saving the file is no problem otherwise.

    Any advice or suggestions? The online documentation seemed to indicate that JS shouldn’t be a problem.

    — Ben

Viewing 3 replies - 1 through 3 (of 3 total)
  • James Huff
    Support Team Rep.

    @macmanx

    If you’re using the built-in editor at Appearance/Editor, you may be encountering a server-side security script (probably mod_security) that is preventing <script> tags from being injected into files via PHP. It’s certainly a bit overkill, but it is a security measure nonetheless.

    You may want to contact your hosting provider or use an FTP client and a plain text editor to edit the file.

    Woo hoo! That’s got it working, thanks !

    — Ben

    James Huff
    Support Team Rep.

    @macmanx

    You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Editing templates, Javascript, 403 Forbidden Error’ is closed to new replies.