Jump to content

Fancybox not displaying title


Recommended Posts

Hi,

 

I'm using Fancybox with Prestashop v1.5.4.0. When Fancybox shows the large size image there is no image title displayed at the bottom. I've spent hours trying to fix this but have had no luck. I seem to have found myself inhabiting a twilight zne of obsure bugs these days.

 

The large size image box has the following markup, when source is viewed:

 

<div id="fancybox-content" style="border-width: 10px; width: 567px; height: 567px;">
<img id="fancybox-img" src="foo.jpg" alt=""></div>

...

<div id="fancybox-title" style="display: none;"></div>

 

Note that the image alt attribute is empty and the fancy-box-title div has its style set to "display: none".

 

Any suggestions on how to fix this woud be most welcome.

Link to comment
Share on other sites

I am self proclaimed horrible at jquery, but I think te problem lies in the img tag. Try setting the title attribute in the img tag. You might have to pull an overrride in the css on the title that is set to display none, but you can control that with an !important call.

  • Like 1
Link to comment
Share on other sites

No joy there, I'm afraid.

 

I downloaded the latest version of Prestashop installed it on a new database with the default theme and ipod sample products. Still no title on the images. Title div is set to "display:none" and there is no alt attribute set.

 

I'm starting to think that this and the breadcrumb problem I have are all the result of some unknown peculiarities with my local XAMPP set up, maybe something in the Apache configuration. Hopefully - fingers crossed - that when my site goes live these issues will magically vanish.

Link to comment
Share on other sites

×
×
  • Create New...