I finally got sick of this and decided to figure out how to fix this issue. I mean, it might even be as simple as some regex somewhere that was blocking anything with. But unfortunately all the restriction takes place inside WP Core files, which I would really rather not edit, for obvious reasons, and I cannot find any hooks that will do the job…. But you can probably write a hook to load your PHP-fake js file after enqueue scripts occur. I was really only thinking about editing…. John: also correct… sadly… you cannot and should not edit the core files, yet cannot add new files or edit JS files via the editor. Have you tried the WP Editor plugin? Well, some things do work like the syntax-coloring in the post editor , the important part for this article being able to edit JS files , does not…
Thoughts, Findings, and Rants…
While WordPress makes it easy for non-coders to manage a website, there will probably come a time when you want to edit code in WordPress to get a little more control over how your site looks or functions. To help you do that, this post will show you how to safely edit code in WordPress in a few different ways:. If you already know what you want to do, you can click one of the links above to jump straight to that specific section. To get more control on how your WordPress site looks and functions, you can edit your WordPress code to customize different areas:. First, if you just want to add your own HTML code to a piece of content, I would recommend not trying to edit the entire source code of your post, as that makes things needlessly complicated. However, there also might come a time where you need to directly edit the HTML of a different block. The stakes are a little bit higher, so we need to cover a few preliminary questions before we get into the how-to. Why are the stakes higher? In recent releases, WordPress has made it a lot harder for you to accidentally do this, but editing the source code of your site is always going to open the door to issues, so you want to make sure you do it safely.
Popular New Posts
WordPress plugins help with extending the functionality of your site and performing advanced digital work with minimal effort. Perhaps you simply want to make some advanced customizations. In any of these instances, WordPress coding may be the next step. Fortunately, there are many ways you can go about it. By default, WordPress is an extremely intuitive and user-friendly platform. There are many ways to customize and change your site without ever touching a line of code thanks to themes and plugins. The WordPress dashboard, plugins, and themes all make tweaking and personalizing your site quick and easy.