Jump to content

Archived

This topic is now archived and is closed to further replies.

jmlavi13

Add Script to a section on some pages

Recommended Posts

jmlavi13

I want to add the following script code to a few on my pages. When I do DMS errors out and will not load.

 

<script src="http://cmc-td.com/button/boxlaunch.php?urlid=22253"></script>

 

I have attemped to put it in a Media box, text box, PL Nextbox and WP post box.

 

I had to remove it.

 

I am on the latest versions of DMS2, DMS Workspace, and Wordpress.

Share this post


Link to post
Share on other sites
Danny

HI,

 

The MediaBox or any section will not support JavaScript as it is not HTML or text. Therefore, if you wish to load a script on a specific pages, you will need to use a hook via a child themes functions.php file and use the WordPress enqueue function and is_page() function.

See these pages for more information:

 

http://answers.pagelines.com/Customization/how-to-use-hooks

http://codex.wordpress.org/Function_Reference/wp_enqueue_script

http://codex.wordpress.org/Function_Reference/is_page


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×