kristoffer.falk Posted July 24, 2013 Share Posted July 24, 2013 Hi everybody.. I have a small problem regarding how/where to place a script in my header or blocktopmenu file.. I have gotten a web-trade certificate from like "trustedshop" but after I updated to 1.5.4.1 I can't seem to find where to place the script.. Attached is a screendump of my site - I want to have the certificate shown between my site logo and the search bar.. Script looks like this: <a id="celink1" href="https://www.ehandelscertifiering.se/"><img id="ceimg1" alt="" src="https://www.ehandelscertifiering.se/lv5/preload.png" style="border:0px;"></a> <script src="https://www.ehandelscertifiering.se/lv5/bootstrap.php?size=75& url=www.koksoutlet.se&lang=se&autolang=yes&pos=auto&nr=1" defer="defer" type="text/javascript"> </script> Another site where same type of script is placed in the same place is shown in example 2 (attached) Anyone has good ideas?? Thanks a lot. Link to comment Share on other sites More sharing options...
vekia Posted July 24, 2013 Share Posted July 24, 2013 hello you can use free html block module to put this code then you will be able to use it in the "displayTop" hook and then - you will be able to customize the position of the badge Link to comment Share on other sites More sharing options...
kristoffer.falk Posted July 24, 2013 Author Share Posted July 24, 2013 Hi Vekia Thanks for you answer.. I've installed your module - but how do I customize the position of the badge? I can choose between the top, header, right, left etc - but how do I put it exactly where I want it? thanks - www.koksoutlet.se if you want to have a look at what I mean..? I need it to be between my shop logo/name, and the search bar. Thanks Link to comment Share on other sites More sharing options...
vekia Posted July 24, 2013 Share Posted July 24, 2013 <div style="position:absolute; top:0px; left: 300px;"> CODE HERE </div> you have to use position:absolute style, then you will be able to change position of the badge with top and left params just increase / decrease the values as you want and go to the modules > positions search for "displayTop" modules list and move the html block module to the top of the list (just drag'n'drop it) Link to comment Share on other sites More sharing options...
vekia Posted July 24, 2013 Share Posted July 24, 2013 take a look, i used this: style="position:absolute; top:10px; left:320px;" effect: Link to comment Share on other sites More sharing options...
kristoffer.falk Posted July 24, 2013 Author Share Posted July 24, 2013 Vekia - once again you make my day.. :-).. Thanks so much for you help and expertise. Prestashop forum wouldn't be the same without the likes of you.. :-) Link to comment Share on other sites More sharing options...
vekia Posted July 24, 2013 Share Posted July 24, 2013 many thanks for your kind words i really appreciate it and all of this motivates me to hard work:) i marked thread as [solved] best regards 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