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
User Script
4 posts from 3 voices-
Posted 1 year ago #
-
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,
ChrisPosted 1 year ago # -
I would like to add in a single post or page. How can I invoke the script. Carlos
Posted 1 year ago # -
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.
Posted 1 year ago #
Reply
You must log in to post.














