• Resolved CB

    (@tng2013)


    Hi guys,

    Got a bit of an issue with the header banner. I want to put this Javascript code in the header banner:

    <span id=”i6ce21″><script type=”text/javascript” src=”//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js”></script><script type=”text/javascript”>var $m=jQuery.noConflict();$m(document).ready(function(){var c=”https://www.thiis.co.uk/mysimpleads/mysa_output.php?callback=?&sid=i6ce21&show_ad=84&#8243;;a();function a(){$m.getJSON(c,function(h){$m.each(h,function(j,k){$m(“#i6ce21”).html(k[0].code)})});}});</script></span>

    I have put this code into shortcoder and put the shortcode into the box as [sc:ad] but it is not working. I also have the code as a PHP insert but this is not working in shortcoder either:

    <?php /* OT AT Today test */ chdir(“H:/hshome/editwm0/thiis.co.uk/mysimpleads”); include_once(“H:/hshome/editwm0/thiis.co.uk/mysimpleads/mysimpleads.php”);show_ad(84); ?>

    Do you have any ideas how I can make this work? I know the codes work as I used the javascript code in a text widget and it worked fine.

    Many thanks,

    Calvin

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter CB

    (@tng2013)

    All sorted; just needed to add it as text rather than visual to shortcoder and open and close it with <p> </p>

    Theme Author Richie KS

    (@rkcorp)

    yeap, you need to use text not visual editor when adding the script code.
    i don’t think the shortcoder work with php include tho.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ad issue for header banner’ is closed to new replies.