Having a <script> html tag in a post
-
Okay, I have been digging through the forums for hours now. I have also looked through the codex page on using javascript, but I cannot find an answer to my problem.
All I want is to be able to add a
<script></script>
tag to my post without WP filtering it out when it shows up in a browser. Seems like a simple desire, but here are the things I have done so far to no avail:1) disabled visual editor in my profile
2) called the .js file in the header.php
3) installed Text Control Plugin and played with the various options
4) physically edited the kses.php file to allow<script>
tags and to allow<p>
elements to have an “id” attributeAll this gets me to a point where I am seeing the proper code in the editor, and there is no character formatting on my code lines, but my
<script></script>
tags are still being stripped on output to a browser. It’s driving me batty. Does anyone have any suggestions?Link to site – https://arkansashealthcareers.com – you can see my issue in the top post – if you view source, you will see that the javascript is completely naked, having been stripped of its
<script></script>
tags.
- The topic ‘Having a <script> html tag in a post’ is closed to new replies.