tiledcode Posted April 8, 2017 Share Posted April 8, 2017 Hello, We are using the classic theme for prestashop 1.7 as our theme base. I want to hardcode an img tag into the footer.tpl template file (to show payment partners logos) but it actually doesn't work as expected (the image is never found). I know that when you add an image in the _dev/img folder of the theme every image is given a hash-like name and referenced by this name in the final css file (computed by webkit). But it only works for css files. So, what is the right way to add an image in the footer (or any template file) ? Thanks, have a nice day 1 Link to comment Share on other sites More sharing options...
theodiablo Posted October 16, 2020 Share Posted October 16, 2020 It has been more than three years this post is without answer. I would love to know how to do this too! Anyone has an idea? :-) Link to comment Share on other sites More sharing options...
theodiablo Posted October 16, 2020 Share Posted October 16, 2020 I have found an answer in another post: The way I did, consider the image file is named my-image-name.jpg: Place the image in the /assets/img folder of your theme In your template, use this to display the : <img src="{$urls.img_url}my-image-name.jpg"> Tadaaa... problem solved! 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