I wanted to add script code to implement "LiveChat" functionality on just three pages of our website. So, I wanted to add one script code given by our LiveChat agency into three webpages of our website.
Script Code
<script src="http://www.examp.com/scripts/invitation.ashx?company=4444"></script>
So, I have created three separate html node templates based on their node ID.
Theses three custom node templates are under
/sites/all/themes/mytheme/templates along with (node.tpl.php and html.tpl.php)
- (contact page) html--node--28.tpl.php
Url of this page: www.example.com/contact
- (admissions page) html--node--1212.tpl.php
Url of this page: www.example.com/admissions
- (market page) html--node--378.tpl.php
Url of this page: www.example.com/market
Code used in all custom node templates (html--node--28.tpl.php, html--node--1212.tpl.php, html--node--378.tpl.php) is the same:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" version="XHTML+RDFa 1.0" dir="<?php print $language->dir; ?>"<?php print $rdf_namespaces; ?>>
<head profile="<?php print $grddl_profile; ?>">
<?php print $head; ?>
<title><?php print $head_title; ?></title>
<?php print $styles; ?>
</head>
<body<?php print $attributes;?>>
<?php print $scripts; ?>
//Adding script for LiveChat
<script src="http://www.examp.com/scripts/invitation.ashx?company=4444"></script>
<div id="skip-link">
<a href="#main-content" class="element-invisible element-focusable"><?php print t('Skip to main content'); ?></a>
</div>
<?php print $page_top; ?>
<?php print $page; ?>
<?php print $page_bottom; ?>
</body>
</html>
But, I am not able to see my script (<script src="http://www.examp.com/scripts/invitation.ashx?company=4444"></script>
) when I debugged it in view pagesource.
Thanks!