Title: Insert javascript into individual post
Last modified: November 12, 2022

---

# Insert javascript into individual post

 *  Resolved [cbpayne](https://wordpress.org/support/users/cbpayne/)
 * (@cbpayne)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/insert-javascript-into-individual-post/)
 * I wanted to insert a code snippet into selected individual posts (see the code
   below)
 * In wpcode, I added the code in code preview box.
    In the drop down for code type,
   I changed that to javascript snippet ‘Active’ is highlighted in top right Selected
   shortcode under Insert Method Code is [wpcode id=”95806″] and insert that in 
   the text version of the post.
 * It does not show up when viewing the post
 * What am I missing?
 *     ```
       <style>
        div.cjjobbox{
   
          width: 345px ;
          background-color: #FFFFFF ;
          border-style: solid ;
          border-width: 1px ;
          border-color: #919294 ;
          font-family: Arial, sans-serif ;
          font-size: 13px ;
          color: #000000;
          text-align: left;
        }
        div.cjjobbox a{
          color: #198ADC ;
        }
       </style>
       <div class="cjjobbox">
       <script type="text/javascript" src="https://www.careerjet.com.au/partners/js_jobbox.html?s=Podiatrist&l=South%20Africa&n=5&lid=37483&nfr=1&ntt=1&affid=e56e2ea2d1d35660305c9aad5d3b3bd9">
       </script>
       </div>
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/insert-javascript-into-individual-post/#post-16195221)
 * Hi [@cbpayne](https://wordpress.org/support/users/cbpayne/),
 * The code you included looks like you need to use the Code Type HTML to support
   all that is there, the JavaScript code will be loaded externally.
 * Please change to HTML and the code should be executed correctly.
 *  Thread Starter [cbpayne](https://wordpress.org/support/users/cbpayne/)
 * (@cbpayne)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/insert-javascript-into-individual-post/#post-16195312)
 * OK, thanks.
    It sort of worked, but shows up as a line…. will work on it

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Insert javascript into individual post’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [cbpayne](https://wordpress.org/support/users/cbpayne/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/insert-javascript-into-individual-post/#post-16195312)
 * Status: resolved