Jump to content

Recommended Posts

Posted

I wonder if someone would be able to point me in the right direction on this issue.


I have a map of Spain as my home page image https://www.sorbaskarst.com/gts/
This looks OK when viewed on a desktop monitor but when viewed on a mobile device it is horizontally compressed.

Do I need two different images? Do I heed to change some html? Where should I start?

Posted (edited)

Please check in the Homepage document, where you have the code for the image "cart-image.webp".

There may be assigned a width and height value in a style attribute.

Remove those values. (Those values remind me of the sizes used by the BXSlider. But here, the BXSlider is not being used.)

 

Edited by bsmither
Posted

"Please check in the Homepage document" - sorry to be dense but which file am I looking for? Is it index.php? as I cannot see a ref to "cart.image.webp" in there

Posted

I corrected the filename in my post above.

In CubeCart's admin, Documents, click the Edit icon for the row that has the Homepage column checked.

On the next page, click the Content tab. Click the editor's Source button.

Viewing the source code of the document, find:

<p><img alt="" src="/gts/images/source/cart-image.webp" style="width:1000px;height:300px;"></p>

Change to:

<p><img alt="" src="/gts/images/source/cart-image.webp"></p>

Save and have CubeCart clear its internal cache.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...