• Resolved cbpayne

    (@cbpayne)


    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

    (@gripgrip)

    Hi @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

    (@cbpayne)

    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.