Jump to content

(SOLVED) Images not shown on mobile devices


Recommended Posts

Hello all!

 

With Prestashop 1.6, I inserted some images in the html code of some pages (blog, manufacturer page etc...) but they are displayed with a questionmark when shown on smartphones or tablets. example:

http://www.kazart-gallery.com/blog/1_inside-the-studios-of-novosibirsk-artists.html

 

Can someone tell me why and help me to solve this ?

 

Thanks in advance! 

Edited by paulux (see edit history)
Link to comment
Share on other sites

Those images are not loaded anywhere because the path is wrong. If you use the inspect element you'll see the path is:

http://localhost:8888/prestashop/img/cms/1 (1).jpg 

You might see the images in your desktop browser because your desktop can access your localhost, but your other devices can't.

 

When inserting images with the PrestaShop editor, it tends to put the full path to the image, including the current domain and when you move your website the paths are no longer valid.

To make sure you preserve a valid path when moving to another domain, remove the domain name from the path of the image and always start with / .

Example:

/img/cms/1 (1).jpg
Edited by gabdara (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...