bexvlad Posted April 25, 2010 Share Posted April 25, 2010 I have been trying to get either Cufon or sIFR working. I need to get some script at the end of HEAD tag. I have tried adding this to the header.tpl for the Theme I am using, placing the code just before the </head> tag.Every time I do this, for both Cufon and sIFR script I just get a blank screen in the browser, and cannot even use 'view source' (also blank).What am I doing wrong, please? Link to comment Share on other sites More sharing options...
rocky Posted April 26, 2010 Share Posted April 26, 2010 If there are curly brackets in your script code, you need to add {literal} before the script are {/literal} after it so that Smarty doesn't try to read them as tags and generate an error. 1 Link to comment Share on other sites More sharing options...
bexvlad Posted April 26, 2010 Author Share Posted April 26, 2010 Thanks again, Rocky. Solved in one! Haven't got Cufon working but the script is in the right place. Link to comment Share on other sites More sharing options...
Inpromark Posted June 27, 2013 Share Posted June 27, 2013 Hi Rocky, I have now a little simuler problem. I need to place the Comodo Trust Logo on my page and that requires to add one script before my </HEAD> tag. and other before my </BODY> tag. I have placed the first into the "header..tpl and the othe in footer.tpl but nothing hapend. Am on the right truck? How should I do this? Link to comment Share on other sites More sharing options...
vekia Posted June 27, 2013 Share Posted June 27, 2013 hello it's probably related to the theme compilation, turn force compilation on and then - refresh your front office. you can also post url to your shop, we will check it Link to comment Share on other sites More sharing options...
Inpromark Posted June 27, 2013 Share Posted June 27, 2013 OK, Thanks Vekia, I got some resolt but not as and where I wanted. According the sctript a have choosed the logo should be on the right bottom of the site and I don't like it that deep (under the footer. I like to have it in that footer on right site. Here is the link to that site: http://ukgreenoffice.co.uk thanks for hepl Marcel Link to comment Share on other sites More sharing options...
vekia Posted June 27, 2013 Share Posted June 27, 2013 unfortunately i don't see any styles related to the image that you have got there now, what kind of code you have to insert? can you please show it? Link to comment Share on other sites More sharing options...
Inpromark Posted June 27, 2013 Share Posted June 27, 2013 here is the codes: 1. Copy and Paste the following piece of code and insert EXACTLY before your </HEAD> tag. <script language="javascript" type="text/javascript"> //<![CDATA[ var tl_loc0=(window.location.protocol == "https:")? "https://secure.comodo.net/trustlogo/javascript/trustlogo.js" : "http://www.trustlogo.com/trustlogo/javascript/trustlogo.js"; document.writeln('<scr' + 'ipt language="JavaScript" src="'+tl_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>'); //]]> </script> 2. Copy and Paste the following piece of code and insert EXACTLY before your </BODY> tag. <script language="JavaScript" type="text/javascript"> TrustLogo("http://ukgreenoffice.co.uk/img/comodo_secure_52x63_transp.png", "CL1", "none"); </script> <a href="http://ssl.comodo.com" id="comodoTL">SSL Certificates</a> I have replaced the "none" (from TrustLogo("http://ukgreenoffice.co.uk/img/comodo_secure_52x63_transp.png", "CL1", "none") and replaced by "bottomright" or "bottomleft" - nothing will move the logo from that corner 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now