jeffmic Posted August 10, 2011 Share Posted August 10, 2011 I need to insert a script into the header of the product search results and product detailed description pages. I've tried to insert this into the header.tpl of my template, but it didn't work as expected. What is the correct header.tpl file to insert this script if I want to get it to work on EVERY page? It will allow HTML5 audio and video to work with EVERY browser. http://mediaelementjs.com/ thank you, Jeff musicalcreations.com <script src="../build/jquery.js"></script> <script src="../build/mediaelement-and-player.min.js"></script> <link rel="stylesheet" href="../build/mediaelementplayer.min.css" /> Link to comment Share on other sites More sharing options...
iYann Posted August 10, 2011 Share Posted August 10, 2011 +1 See also: http://videojs.com/ Is there a way to integrate an HTML5 player in Prestashop ? I'm not a programer, but I heard Prestashop doesn't work with HTML5... ? Can someone provide more insight ? How about the upcoming 1.5 Presta version ? Yann Link to comment Share on other sites More sharing options...
Paul C Posted August 14, 2011 Share Posted August 14, 2011 You haven't mentioned which version of Prestashop you're using. Ideally you would add something like this via a module, since you can then use the AddJS() and AddCSS() -- these queue the scripts up for combining and minification. Adding to header.tpl should work too though (for all PS versions and foe all pages). I notice from the code you posted that they have relative links... what are they relative to? Looks like it would be in a directory above your store root currently... try adding them as absolute urls to the actual JS and CSS files.... Paul Link to comment Share on other sites More sharing options...
Metameme Posted August 16, 2011 Share Posted August 16, 2011 +1 See also: http://videojs.com/ Is there a way to integrate an HTML5 player in Prestashop ? I'm not a programer, but I heard Prestashop doesn't work with HTML5... ? Can someone provide more insight ? How about the upcoming 1.5 Presta version ? Yann Hi Yann, I can't see why Prestashop wouldn't work with HTML5. What you would have to do is to change the DOCTYPE-tag to following: <!DOCTYPE hmtl> HTML5 demands your users to have either firefox, chrome or IE9 as their web browser. //Mike 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