Page 1 of 1

[Solved] No photo next to menu item

Posted: 18 Jan 2013, 15:40
by majapi
Hello,

Here is screenshot: http://img221.imageshack.us/img221/749/ ... 7at203.png
Here is website: http://cafe.restaurants-webdesign.com/i ... Itemid=481

Image doesn't show next to menu item.

Would you know what's the problem?

Thank you
Regards
Maja

Re: No photo next to menu item

Posted: 20 Jan 2013, 20:12
by Jan
Hi, one of your CSS file disable displaying of images on your site, just try to disable all CSS styles on your site (to test it - e.g. in Firefox with development toolbar) and the images will be displayed there.

Jan

Re: No photo next to menu item

Posted: 21 Jan 2013, 21:19
by majapi
Hi Jan,

it's seizing problem I think. This template is responsive, this element is making images smaller in ../templates/jm-italian-restaurant/css/reset.css

img {
max-width: 100%;
height: auto;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}

when I disable:
/*max-width: 100%;
height: auto;*/

then images next to menu are showing, but rest of the photos on site are not responsive anymore, it's braking the design.

Not sure what to do now. Can I somehow exclude images from phoca in this css or add something in phocamenu css? So the rest of the images are responsive but phoca images are not?

Would you know the solution to this problem?

Thanks
Kind Regards
Maja

Re: No photo next to menu item

Posted: 21 Jan 2013, 21:47
by Jan
Hi, really no idea who made such restriction and how it works, so you need to ask the template developer how to exclude all other standard images on the site (as the images next to menu items are normall standard img tags :idea:) This has nothing to do with the phocamenu.css. The problem is, some of the template css somehow prevent from displaying standard images on the site :idea:

Re: No photo next to menu item

Posted: 23 Jan 2013, 22:04
by majapi
Hi Jan,

Thanks, yes I will contact them. Thanks anyway for your help.

Regards
Maja

Re: No photo next to menu item

Posted: 28 Jan 2013, 13:04
by majapi
Hi Jan,

Just to let you know. I contacted template provider and they found the solution. Here it is and it worked:

Here what they say:

The issue is related to css styles used in phoca component. Since there is a width hack (1% width for table cell and div inside), the responsive images won't work correctly. In this case I suggest to add this style:

#phocamenu .pmimage a img, #phocamenu .pm-item table tr td div.pmimage a img {max-width: none !important;}


Kind Regards
Maja

Re: [Solved] No photo next to menu item

Posted: 30 Jan 2013, 21:53
by Jan
Ok, thank youf or the information.

Jan

Re: [Solved] No photo next to menu item

Posted: 01 May 2013, 23:36
by sapientis
man i have the same prob with the same template but i dont understand the solution majapi posted so can anybody help me... :x
tyvm!

Re: [Solved] No photo next to menu item

Posted: 07 May 2013, 21:25
by Jan
Hi, just add the css code listed above to your template CSS (at the end)

Jan

Re: [Solved] No photo next to menu item

Posted: 06 Jul 2013, 23:53
by Jan
Fixed in 3.0.0 Beta