[Solved] No photo next to menu item

Phoca Restaurant Menu - restaurant menu manager
majapi
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 17 Jan 2013, 22:42

[Solved] No photo next to menu item

Post 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
Last edited by majapi on 28 Jan 2013, 13:29, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: No photo next to menu item

Post 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
If you find Phoca extensions useful, please support the project
majapi
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 17 Jan 2013, 22:42

Re: No photo next to menu item

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: No photo next to menu item

Post 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:
If you find Phoca extensions useful, please support the project
majapi
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 17 Jan 2013, 22:42

Re: No photo next to menu item

Post by majapi »

Hi Jan,

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

Regards
Maja
majapi
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 17 Jan 2013, 22:42

Re: No photo next to menu item

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Solved] No photo next to menu item

Post by Jan »

Ok, thank youf or the information.

Jan
If you find Phoca extensions useful, please support the project
sapientis
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 01 May 2013, 23:34

Re: [Solved] No photo next to menu item

Post 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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Solved] No photo next to menu item

Post by Jan »

Hi, just add the css code listed above to your template CSS (at the end)

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Solved] No photo next to menu item

Post by Jan »

Fixed in 3.0.0 Beta
If you find Phoca extensions useful, please support the project
Post Reply