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

#   Product Page Main Image height issue

##

- **[many-feathers](/forum/user/1025-many-feathers "View many-feathers's Profile")**
- [![many-feathers's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1025-many-feathers "View many-feathers's Profile") Topic Author
- [ Offline](/forum/user/1025-many-feathers)

Less More

- Posts: 55
- Thank you received: 1
-
-

14 years 2 months ago [\#62678](#62678) by [many-feathers](/forum/user/1025-many-feathers "View many-feathers's Profile")  *[Product Page Main Image height issue](/forum/3-bug-report/62678-product-page-main-image-height-issue#62678 "The class 'hikashop&#95;product&#95;main&#95;image' gets a fixed height equal to the 'Product Page Image height' setting in Hikashop's configuration. This results in the main picture overlapping the description...")* was created by *[many-feathers](/forum/user/1025-many-feathers "View many-feathers's Profile")*

The class 'hikashop_product_main_image' gets a fixed height equal to the 'Product Page Image height' setting in Hikashop's configuration. This results in the main picture overlapping the description text below it, when only one product image is available. In my case, I use a 300 x 400 Main Product image.

I believe the height value shouldn't be applied to this class. The "hikashop_product_main_image_subdiv" class already gets this same height assigned. If you assign it to 'hikashop_product_main_image' as well, the margins that are being added through other properties, aren't taken into account.

I removed de height property from 'hikashop_product_main_image' using Firebug and the layout problem disappears. Removing it doesn't seem to have any effect on single image products nor multiple image products.

What view would I have to adapt to make this change permanent?

Thanks again!

I'm using Hikashop 1.6.0 on Joomla 2.5.6

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 months ago [\#62758](#62758) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Product Page Main Image height issue](/forum/3-bug-report/62678-product-page-main-image-height-issue#62758 "The class 'hikashop&#95;product&#95;main&#95;image' gets a fixed height equal to the 'Product Page Image height' setting in Hikashop's configuration. This results in the main picture overlapping the description...")*

Hi many-feathers,

You can edit the view "product / show_block_img" in HikaShop &gt; Display &gt; Views to remove this height property permanently.

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

- **[many-feathers](/forum/user/1025-many-feathers "View many-feathers's Profile")**
- [![many-feathers's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1025-many-feathers "View many-feathers's Profile") Topic Author
- [ Offline](/forum/user/1025-many-feathers)

Less More

- Posts: 55
- Thank you received: 1
-
-

14 years 2 months ago [\#62770](#62770) by [many-feathers](/forum/user/1025-many-feathers "View many-feathers's Profile")  Replied by *[many-feathers](/forum/user/1025-many-feathers "View many-feathers's Profile")* on topic *[Re: Product Page Main Image height issue](/forum/3-bug-report/62678-product-page-main-image-height-issue#62770 "The class 'hikashop&#95;product&#95;main&#95;image' gets a fixed height equal to the 'Product Page Image height' setting in Hikashop's configuration. This results in the main picture overlapping the description...")*

Ok, I'll give that a try...

But will this be remedied in a next version of Hikashop?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MjY3OC1wcm9kdWN0LXBhZ2UtbWFpbi1pbWFnZS1oZWlnaHQtaXNzdWU/dG1wbD1tYXJrZG93bg==) 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: 86320
- Thank you received: 14279
-
-

14 years 2 months ago [\#62772](#62772) 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 Page Main Image height issue](/forum/3-bug-report/62678-product-page-main-image-height-issue#62772 "The class 'hikashop&#95;product&#95;main&#95;image' gets a fixed height equal to the 'Product Page Image height' setting in Hikashop's configuration. This results in the main picture overlapping the description...")*

Yes.

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

- **[many-feathers](/forum/user/1025-many-feathers "View many-feathers's Profile")**
- [![many-feathers's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1025-many-feathers "View many-feathers's Profile") Topic Author
- [ Offline](/forum/user/1025-many-feathers)

Less More

- Posts: 55
- Thank you received: 1
-
-

14 years 2 months ago [\#63070](#63070) by [many-feathers](/forum/user/1025-many-feathers "View many-feathers's Profile")  Replied by *[many-feathers](/forum/user/1025-many-feathers "View many-feathers's Profile")* on topic *[Re: Product Page Main Image height issue](/forum/3-bug-report/62678-product-page-main-image-height-issue#63070 "The class 'hikashop&#95;product&#95;main&#95;image' gets a fixed height equal to the 'Product Page Image height' setting in Hikashop's configuration. This results in the main picture overlapping the description...")*

In the view 'product/show_block_img" I changed the line:

&lt;div style="height:&lt;?php echo $height;?&gt;px;text-align:center;clear:both;" class="hikashop_product_main_image"&gt;

into

&lt;div style="text-align:center;clear:both;" class="hikashop_product_main_image"&gt;

which solved the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MjY3OC1wcm9kdWN0LXBhZ2UtbWFpbi1pbWFnZS1oZWlnaHQtaXNzdWU/dG1wbD1tYXJrZG93bg==) 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.082 seconds

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

[](#top)
