Jump to content

Edit History

truetaurus

truetaurus

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?

truetaurus

truetaurus

I have the following declared in my themes/.../templates/_partials/stylesheets.tpl:

<link rel="stylesheet" href="/public/css/semantic.css">

The file exists in my themes assets folder but does not seem to be able to find it. Same goes when I have images from public/img/.... E.G: <img class="logo" src="/public/img/Logo.svg">

I also note when I hover over the href it shows: http://localhost/public/img/Logo.svg yet my shop is located under a directory like this: http://localhost/shop_name

Does anyone know how to tell prestashop to look in my theme public assets folder for these?

truetaurus

truetaurus

I have the following declared in my themes/.../templates/_partials/stylesheets.tpl:

<link rel="stylesheet" href="/public/css/semantic.css">

The file exists in my themes assets folder but does not seem to be able to find it. Same goes when I have images from public/img/...

Does anyone know how to tell prestashop to look in my theme public assets folder for these?

×
×
  • Create New...