Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9231

    Hello I need to insert this (<script language=”JavaScript” src=”http://dunsregistered.dnb.com” type=”text/javascript”></script>) code (scrip) that will insert a seal. I would use in a prominent place in the home. Where can I insert this kind of code.

    Carlos

    #63932

    Hi,

    You can either include the code in your header.php file between the head tags – this will load the script but you’d have to call it again somewhere for it to actually show (at least for what you’re describing). Or you can put it in a post/page in HTML view.

    If you could specify which “prominent place” you’d like to use I can provide more specific instructions.

    Regards,

    Chris

    #63933

    I would like to add in a single post or page. How can I invoke the script. Carlos

    #63934

    If you’d like to use it on a certain page/post you can use conditional tags: http://codex.wordpress.org/Conditional_Tags

    I’d include it in header.php before the closing head tag. The code would look like:

    <?php

    if (is_single( '17' )){
    echo '<script language="JavaScript" src="http://dunsregistered.dnb.com" type="text/javascript"></script>';
    }

    ?>

    Replace 17 with your custom post/page id.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘User Script’ is closed to new replies.