truetaurus Posted September 5, 2019 Share Posted September 5, 2019 (edited) I have an image in my theme in a .tpl file defined like this: <img class="logo" src="/public/img/Logo.svg"> However the image is not found even though it is in this directory: /themes/theme_name/assets/img/Logo.svg The result in the console is thus GET http://localhost/public/img/Logo.svg 404 (Not Found) Even though my url to the shop is this: http://localhost/prestashop/en/ How do I get prestashop 1.7 to display this image or know where exactly to look for it? Edited September 5, 2019 by truetaurus (see edit history) Link to comment Share on other sites More sharing options...
truetaurus Posted September 6, 2019 Author Share Posted September 6, 2019 Solution is: {$urls.img_url}Logo.svg 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