[Skip to main content](#vessel-content)

#   Product images

##

- **[Sub-R](/forum/user/1490-sub-r "View Sub-R's Profile")**
- [![Sub-R's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1490-sub-r "View Sub-R's Profile") Topic Author
- [ Offline](/forum/user/1490-sub-r)

Less More

- Posts: 21
- Thank you received: 0
-
-

15 years 7 months ago [\#12338](#12338) by [Sub-R](/forum/user/1490-sub-r "View Sub-R's Profile")  *[Product images](/forum/4-how-to/12338-product-images#12338 "Hopefully this will be the last time I bug you. I have come a long way in a short time thanks to your help. Right now, I have three image questions.  1. Could you tell me where to go to change the spacing between images on the main product listing page? 2. Along with spacing those images, how do I get the name and price centered for those images? Right now they are slightly to the left of center.  3. On the product pages, is there a way to code the SqueezeBox images so that you can move through each image without closing the pop-up?  The site is at subversiverobot.cloudaccess.net  Thanks.")* was created by *[Sub-R](/forum/user/1490-sub-r "View Sub-R's Profile")*

Hopefully this will be the last time I bug you. I have come a long way in a short time thanks to your help. Right now, I have three image questions.

1. Could you tell me where to go to change the spacing between images on the main product listing page?
2. Along with spacing those images, how do I get the name and price centered for those images? Right now they are slightly to the left of center.
[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/Screen_shot_2011_03_27_at_9.png) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/Screen_shot_2011_03_27_at_9.png "&#91;img")

3. On the product pages, is there a way to code the SqueezeBox images so that you can move through each image without closing the pop-up?

The site is at subversiverobot.cloudaccess.net

Thanks.

- [ ![Screen&#95;shot&#95;2011&#95;03&#95;27&#95;at&#95;9.png](/forum/attachment/823) ](/forum/attachment/823 "...03&#95;27&#95;at&#95;9.png") [ ](/forum/attachment/823?download=1 "...03&#95;27&#95;at&#95;9.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMzM4LXByb2R1Y3QtaW1hZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

15 years 7 months ago [\#12350](#12350) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product images](/forum/4-how-to/12338-product-images#12350 "Hopefully this will be the last time I bug you. I have come a long way in a short time thanks to your help. Right now, I have three image questions.  1. Could you tell me where to go to change the spacing between images on the main product listing page? 2. Along with spacing those images, how do I get the name and price centered for those images? Right now they are slightly to the left of center.  3. On the product pages, is there a way to code the SqueezeBox images so that you can move through each image without closing the pop-up?  The site is at subversiverobot.cloudaccess.net  Thanks.")*

Hi,

1 and 2. If you edit your products listing menu's hikashop options, you should be able to change the margin between each item box. The information should already be centered. The problem seems to come from the fact that your thumbnails are too big for the item box and they go over it. Reducing the thumbnails size in the config should greatly help...

3. In that case the easiest would be to integrate hikashop with the ninja shadowbox module: [ www.hikashop.com/en/support/forum/4-how-...n-product-pages.html](http://www.hikashop.com/en/support/forum/4-how-to/12251-multiple-images-in-product-pages.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMzM4LXByb2R1Y3QtaW1hZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Sub-R](/forum/user/1490-sub-r "View Sub-R's Profile")**
- [![Sub-R's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1490-sub-r "View Sub-R's Profile") Topic Author
- [ Offline](/forum/user/1490-sub-r)

Less More

- Posts: 21
- Thank you received: 0
-
-

15 years 7 months ago [\#12408](#12408) by [Sub-R](/forum/user/1490-sub-r "View Sub-R's Profile")  Replied by *[Sub-R](/forum/user/1490-sub-r "View Sub-R's Profile")* on topic *[Re: Product images](/forum/4-how-to/12338-product-images#12408 "Hopefully this will be the last time I bug you. I have come a long way in a short time thanks to your help. Right now, I have three image questions.  1. Could you tell me where to go to change the spacing between images on the main product listing page? 2. Along with spacing those images, how do I get the name and price centered for those images? Right now they are slightly to the left of center.  3. On the product pages, is there a way to code the SqueezeBox images so that you can move through each image without closing the pop-up?  The site is at subversiverobot.cloudaccess.net  Thanks.")*

Is there any way to change the box size? I would really like to keep the thumbnails at that size.

For the integration of ninja shadow box, do I do the following?

Load and activate the module, then switch the following code: Code:

echo $this-&gt;image-&gt;display($image-&gt;file_path,'hikashop_main_image_'.$variant_name,$image-&gt;file_name,'class="hikashop_child_image"');

Change that to: Code:

echo '&lt;a class="hikashop_image_small_link" href="'.$this-&gt;image-&gt;uploadFolder_url.$image-&gt;file_path.'" rel="shadowbox[GROUP1]"&gt;&lt;img src="'.$this-&gt;image-&gt;uploadFolder_url.'thumbnail/'.$image-&gt;file_path.'" alt="'.$image-&gt;file_name.'" /&gt;&lt;/a&gt;';

Is that correct?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMzM4LXByb2R1Y3QtaW1hZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

15 years 7 months ago [\#12414](#12414) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product images](/forum/4-how-to/12338-product-images#12414 "Hopefully this will be the last time I bug you. I have come a long way in a short time thanks to your help. Right now, I have three image questions.  1. Could you tell me where to go to change the spacing between images on the main product listing page? 2. Along with spacing those images, how do I get the name and price centered for those images? Right now they are slightly to the left of center.  3. On the product pages, is there a way to code the SqueezeBox images so that you can move through each image without closing the pop-up?  The site is at subversiverobot.cloudaccess.net  Thanks.")*

There is no size for the boxes. Their width is generated automatically based on the width of your content area and the number of columns you set in the hikashop options of your menu/module. If you reduce the number of columns, you will have each item box bigger.

Yes.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMzM4LXByb2R1Y3QtaW1hZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Sub-R](/forum/user/1490-sub-r "View Sub-R's Profile")**
- [![Sub-R's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1490-sub-r "View Sub-R's Profile") Topic Author
- [ Offline](/forum/user/1490-sub-r)

Less More

- Posts: 21
- Thank you received: 0
-
-

15 years 7 months ago [\#12425](#12425) by [Sub-R](/forum/user/1490-sub-r "View Sub-R's Profile")  Replied by *[Sub-R](/forum/user/1490-sub-r "View Sub-R's Profile")* on topic *[Re: Product images](/forum/4-how-to/12338-product-images#12425 "Hopefully this will be the last time I bug you. I have come a long way in a short time thanks to your help. Right now, I have three image questions.  1. Could you tell me where to go to change the spacing between images on the main product listing page? 2. Along with spacing those images, how do I get the name and price centered for those images? Right now they are slightly to the left of center.  3. On the product pages, is there a way to code the SqueezeBox images so that you can move through each image without closing the pop-up?  The site is at subversiverobot.cloudaccess.net  Thanks.")*

Thanks Nicolas.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMzM4LXByb2R1Y3QtaW1hZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Sub-R](/forum/user/1490-sub-r "View Sub-R's Profile")**
- [![Sub-R's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1490-sub-r "View Sub-R's Profile") Topic Author
- [ Offline](/forum/user/1490-sub-r)

Less More

- Posts: 21
- Thank you received: 0
-
-

15 years 7 months ago -  15 years 7 months ago [\#12657](#12657) by [Sub-R](/forum/user/1490-sub-r "View Sub-R's Profile")  Replied by *[Sub-R](/forum/user/1490-sub-r "View Sub-R's Profile")* on topic *[Re: Product images](/forum/4-how-to/12338-product-images#12657 "Hopefully this will be the last time I bug you. I have come a long way in a short time thanks to your help. Right now, I have three image questions.  1. Could you tell me where to go to change the spacing between images on the main product listing page? 2. Along with spacing those images, how do I get the name and price centered for those images? Right now they are slightly to the left of center.  3. On the product pages, is there a way to code the SqueezeBox images so that you can move through each image without closing the pop-up?  The site is at subversiverobot.cloudaccess.net  Thanks.")*

I swapped the code and ninja shadowbox is working on the child images. The problem that I have now is that the layout of the images has changed. Rather than having the main image with the child images under, the child images have become the same size as the main image.

Also, the main image still uses SqeezeBox for the pop-up, which I understand because the code is targeting the child images. Could you let me know what to change for the main image?

After the code change:
[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/image1.gif) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/image1.gif "&#91;img")

How I want it:
[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/image2.gif) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/image2.gif "&#91;img")

- [ ![image1.gif](/forum/attachment/856) ](/forum/attachment/856 "image1.gif") [ ](/forum/attachment/856?download=1 "image1.gif")
- [ ![image2.gif](/forum/attachment/857) ](/forum/attachment/857 "image2.gif") [ ](/forum/attachment/857?download=1 "image2.gif")

Last edit: 15 years 7 months ago by [Sub-R](/forum/user/1490-sub-r "View Sub-R's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMzM4LXByb2R1Y3QtaW1hZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

15 years 7 months ago [\#12671](#12671) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product images](/forum/4-how-to/12338-product-images#12671 "Hopefully this will be the last time I bug you. I have come a long way in a short time thanks to your help. Right now, I have three image questions.  1. Could you tell me where to go to change the spacing between images on the main product listing page? 2. Along with spacing those images, how do I get the name and price centered for those images? Right now they are slightly to the left of center.  3. On the product pages, is there a way to code the SqueezeBox images so that you can move through each image without closing the pop-up?  The site is at subversiverobot.cloudaccess.net  Thanks.")*

You need to do the same modification for the main image code:
echo $this-&gt;image-&gt;display($image-&gt;file_path,true,$image-&gt;file_name,'id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_link"');

Then, you just need to force a height on the small images in CSS so that they are reduced like you want.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMzM4LXByb2R1Y3QtaW1hZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[PhilP](/forum/user/5076-philp "View PhilP's Profile")**
- [![PhilP's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5076-philp "View PhilP's Profile")
- [ Offline](/forum/user/5076-philp)

Less More

- Posts: 44
- Thank you received: 1
-
-

14 years 9 months ago [\#39445](#39445) by [PhilP](/forum/user/5076-philp "View PhilP's Profile")  Replied by *[PhilP](/forum/user/5076-philp "View PhilP's Profile")* on topic *[Re: Product images (item box sizes)](/forum/4-how-to/12338-product-images#39445 "Hopefully this will be the last time I bug you. I have come a long way in a short time thanks to your help. Right now, I have three image questions.  1. Could you tell me where to go to change the spacing between images on the main product listing page? 2. Along with spacing those images, how do I get the name and price centered for those images? Right now they are slightly to the left of center.  3. On the product pages, is there a way to code the SqueezeBox images so that you can move through each image without closing the pop-up?  The site is at subversiverobot.cloudaccess.net  Thanks.")*

[ ![ProductImageTitlelistings.jpg](/forum/attachment/2742) ](/forum/attachment/2742 "...lelistings.jpg")

Hi Nicolas,
I just found this thread which seems to be touching on an area in which I am seeking a solution.

You respond to an earlier post with *"There is no size for the boxes. Their width is generated automatically based on the width of your content area and the number of columns you set in the hikashop options of your menu/module. If you reduce the number of columns, you will have each item box bigger."*

Has this situation changed? We have related products listed in our shop which use the same thumbnail image but which have a title of variable length depending on the exact part number.

See the attached image file. Is there any way I can make the item boxes the same size so that their lower edges will all be aligned? (That is, apart from trying to make the titles all the same length?)

Regards
PhilP.

- [ ![ProductImageTitlelistings.jpg](/forum/attachment/2742) ](/forum/attachment/2742 "...lelistings.jpg") [ ](/forum/attachment/2742?download=1 "...lelistings.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMzM4LXByb2R1Y3QtaW1hZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

14 years 9 months ago [\#39541](#39541) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product images (item box sizes)](/forum/4-how-to/12338-product-images#39541 "Hopefully this will be the last time I bug you. I have come a long way in a short time thanks to your help. Right now, I have three image questions.  1. Could you tell me where to go to change the spacing between images on the main product listing page? 2. Along with spacing those images, how do I get the name and price centered for those images? Right now they are slightly to the left of center.  3. On the product pages, is there a way to code the SqueezeBox images so that you can move through each image without closing the pop-up?  The site is at subversiverobot.cloudaccess.net  Thanks.")*

Note that the question was for the width of the boxes.
For the height, there is no value set, but you can easily set it in CSS like that so that all the boxes have the same height :
.hikashop_subcontainer{
height: 350px;
}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMzM4LXByb2R1Y3QtaW1hZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[PhilP](/forum/user/5076-philp "View PhilP's Profile")**
- [![PhilP's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5076-philp "View PhilP's Profile")
- [ Offline](/forum/user/5076-philp)

Less More

- Posts: 44
- Thank you received: 1
-
-

14 years 9 months ago [\#39591](#39591) by [PhilP](/forum/user/5076-philp "View PhilP's Profile")  Replied by *[PhilP](/forum/user/5076-philp "View PhilP's Profile")* on topic *[Re: Product images (item box sizes)](/forum/4-how-to/12338-product-images#39591 "Hopefully this will be the last time I bug you. I have come a long way in a short time thanks to your help. Right now, I have three image questions.  1. Could you tell me where to go to change the spacing between images on the main product listing page? 2. Along with spacing those images, how do I get the name and price centered for those images? Right now they are slightly to the left of center.  3. On the product pages, is there a way to code the SqueezeBox images so that you can move through each image without closing the pop-up?  The site is at subversiverobot.cloudaccess.net  Thanks.")*

Thanks Nicolas,
That works perfectly ![:)](/media/kunena/emoticons/3.png ":)")
Excellent support as usual.
PhilP

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMzM4LXByb2R1Y3QtaW1hZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.084 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
