Support will be provided with delays until 15 December. We are sorry for the inconvenience.
We offer professional Design/Code Customisation and Website Optimisation Service Request Customisation
  • Priority: Medium
  • Status: Closed
  • Closed by: Marek (marek)
  • Closed on: 30.08.19, 12:32
  • Reason: Closed
  • Comment: Glad to help!

Ticket #15269 - Description Icons (AMP)

Hi Marek,

Do you know why the icon that is set up in back office as 26px in width is huge on mobiles? Image attached.

This ticket does not depend on any other tickets.

Marek (marek) 02 Aug 2019, 20:19

Please give me a link where I can see that

Lisa Keeling (Lissea) 03 Aug 2019, 09:09



<amp-img src=”” alt=”” width=”26” height=”19” layout=”responsive” class=”i-amphtml-element i-amphtml-layout-responsive i-amphtml-layout-size-defined i-amphtml-layout” i-amphtml-layout=”responsive”><i-amphtml-sizer style=”padding-top: 73.07692307692307%;”></i-amphtml-sizer><img decoding=”async” alt=”” src=”” class=”i-amphtml-fill-content i-amphtml-replaced-content”></amp-img>

Marek (marek) 03 Aug 2019, 10:35

Try to add style attribute manually

Lisa Keeling (Lissea) 07 Aug 2019, 11:06

Hi Marek,

I was trying to add the styles manually but it looks like mobile website blocks somehow responsiveness of the images. I even uploaded smaller image, but then it displays the image with really low quality. I am able to manipulate with the size using google inspection, but when it comes to adding it manually in page, it doesn’t work... :(

Marek (marek) 07 Aug 2019, 12:36

I just added a fix to the file /lcr_dev/modules/pk_amp/controllers/front/cms.php

Lisa Keeling (Lissea) 07 Aug 2019, 13:03

Thank you, scaling works for pages, but I have exactly the same issue under product description. Summary works fine though.

Also, image alignment doesnt work - both for pages and product summary/description. It always aligns to the left.

Marek (marek) 07 Aug 2019, 19:41

try to add an attribute to the image


it should looks like this:

<img src="path/to/img.jpg" align="left">
Lisa Keeling (Lissea) 08 Aug 2019, 10:38


Code: <img src=”” alt=”” width=”100” height=”73” align=”right” />
Result on the image.

I can’t align image to the centre and right.
2. What about scaling the icon in product description? Did you see the link i sent above - cruelty free icon is huge on product description section and whatever I do, it doesn’t scale.

Marek (marek) 08 Aug 2019, 20:07

scaling the icon in product description is fixed.
As for the alignment, please check it out now