Xarcell

Member
Oct 25, 2012
6
0
1
cPanel Access Level
Website Owner
I made a custom cPanel theme for a client that matches their wordpress/ipb/whmcs themes. The script works in all other themes, plus locally. I can't figure why it doesn't work in cpanel theme. Is there something I should know about adding javascript to a cPanel theme?

Here is an example of the scripts used:

Code:
<script type="text/javascript">
var LiveHelpSettings = {};
LiveHelpSettings.server = 'portal.xxxxxx.com/modules';
LiveHelpSettings.embedded = false;
LiveHelpSettings.protocol = 'https://';
(function(d, $, undefined) {
	$(window).ready(function() {
		var LiveHelp = d.createElement('script'); LiveHelp.type = 'text/javascript'; LiveHelp.async = true;
		LiveHelp.src = ('https:' == d.location.protocol ? 'https://' : 'http://') + LiveHelpSettings.server + '/livehelp/scripts/jquery.livehelp.js';
		var s = d.getElementsByTagName('script')[0];
		s.parentNode.insertBefore(LiveHelp, s);
	});
})(document, jQuery);
</script>
and

Code:
<script type="text/javascript">
$(function() {
$(".h-plan-t-style3 a[title]").tooltips();
});
</script>
Any ideas?
 

cPanelKye

Registered
Staff member
Nov 14, 2012
1
0
1
cPanel Access Level
Root Administrator
I'll start by saying that cPanel does not use jQuery so you would have to import the library yourself.

If this doesn't fix your issue, could you tell me which file you are adding the code to?