- Posts: 48
- Thank you received: 5
problem product display image and social
- aromamassage
-
Topic Author
- Offline
-- HikaShop version -- : 5.0.2
-- Joomla version -- : 4.4.0
hi, I noticed without making any changes, that on the product view page, the additional images are squashed and stretched, furthermore, the social icons are different and bulkier than normal.
What happened? What parameters can I control?
Thank you
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 6
- Thank you received: 1
only the problem relating to the social button is solved but the secondary image have a strange elongated format.
www.aroma-massage.it/shop/prodotti-viso/...chera-lip-gloss.html
any suggestion?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 6
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- Posts: 6
- Thank you received: 1
Please Log in or Create an account to join the conversation.
1. The issue with the thumbnails on the product details page comes from CSS.
As your website CSS is compressed by JCH Optimize, I don't know what is missing where.
However, adding such CSS code should solve the problem:
2. Regarding the thumbnails on the products listings, I'm not sure what you mean. You've configured the thumbnails to be 100*100 there and thus they are very small because of that.
If you want them bigger, you need to increase the values in the "Thumbnail (width x height)" of the configuration page.
Please Log in or Create an account to join the conversation.
- aromamassage
-
Topic Author
- Offline
- Posts: 48
- Thank you received: 5
The other problem concerns the category images, as I have not specified particular dimensions there but I don't know why it is inserted smaller than the container, in fact here too by inserting
maybe I made some mess with the css in the past... because even if I disable Jch the problems persist...
Please Log in or Create an account to join the conversation.
1. Please, provide these elements in order to better understand:
- Url link (one or several) to allow us to see the context
- Details what you want to achieve via precise description (annotated screenshot, scheme etc...)
=> Make 2 precise descriptions, one for the classic view and one for the mobile view
2. For your categories image, you have to use bigger image AND use wider settings (or not, depending on the case) in your relative Item Menu, see my screenshot :
Regards
Please Log in or Create an account to join the conversation.
- aromamassage
-
Topic Author
- Offline
- Posts: 48
- Thank you received: 5
the images of the categories do not fill the container, in fact upon analysis the images are almost all 320x124px but no one has ever set these measurements, while the container appears to be 580x243px. The result is images that are significantly smaller than the space they should occupy. This issue is viewable in both mobile and desktop modes.
the second anomaly similar to the previous one ( www.aroma-massage.it/shop/prodotti-viso.html ) is that in the list of subcategories of the "face" category the images are also smaller than the container, even more evident given that they are only 2 columns.
therefore I would like to understand if it is normal or if there is some incorrect setting.
furthermore, I wanted to understand if in mobile mode there is the possibility of fixing the view on two columns, given that in mobile mode it automatically works with only one column.
Also, analyzing the console I get this error which I don't know if it can be relevant
I hope I was more understandable
Please Log in or Create an account to join the conversation.
Please provide these elements, we will need to process some tests directly on your website :
- Url link to your backend (administrator)
- Backend user references (with maximum Acl)
Note : Use our Contact us form to provide these elements, and don't forget to add an Url link to this topic
Precise us if your website is in production phase or not, please.
Regards
Please Log in or Create an account to join the conversation.
1. Regarding the size of the images on your listing:
I checked the situation there and it's normal it does this.
If you look at the URL of your images, you can see for example this:
/images/com_hikashop/upload/thumbnails/200x320/slidepviso.png
So the size of the thumbnails configured for the categories listing (under the "categories options" tab of your menu item settings page) is 200*320 pixels.
Also, The ratio of the original image doesn't respect the ratio you asked so that means that the thumbnail image generated will be smaller in height and thus you end up with an image measuring 124*320 pixels.
Also, you have activated the "height consistency" setting of your menu item. This means that the height of each category block on the listing will be stretched to use the biggest one.
And on that same listing, you also have the image:
images/com_hikashop/upload/thumbnails/200x320/slide_gift.png
This image is the only one with a different ratio that the others with 200*244 pixels.
So it's the only one using the full height you configured. And thus all the other category blocks have extra space to match with the category block of this image.
So either:
- rework on that image slide_gift.png so that it uses the same aspect ratio as the image of the other categories
- turn off the "height consistency" setting of your menu item so that different category blocks can have different heights, and each will adapt to the height of the image
- change the "Image scale mode" setting of the HikaShop configuration from "keep ratio" to "crop". In that case, all the thumbnails generated will have the exact ratio you configured by croping the images sides (you probably don't want to do this from what I understand).
- activate the "force size" setting of the HikaShop configuration. In that case, the images generated will also have th exact ratio you configured, but instead of croping the images, the system will add extra white stripes. So the images which don't match the ratio will get white stripes and thus the images will look centered both horizontally and vertically in their area in the category block.
2. Since different templates and different configurations of the same template and modules will allocate different spaces to the listings, to be on the safe side, HikaShop's CSS automatically switches from several columns to 1 column for mobile devices regardless of whether their could be enough space available for 2 columns as it is impossible to tell, from HikaShop's perspective.
And since this is done directly in the CSS, it's difficult to make it a setting which could be easily configured.
But that doesn't mean it's impossible. With either some view override modifications, or custom CSS code it is possible to do it. Several users have done it in the past, in order to fit their needs. However, it requires some programing skills. You can read more about all this on this thread:
www.hikashop.com/forum/product-category-...-reponsive-view.html
Please Log in or Create an account to join the conversation.
- aromamassage
-
Topic Author
- Offline
- Posts: 48
- Thank you received: 5
Please Log in or Create an account to join the conversation.