WebsiteBaker Support (2.8.x) > Bakery Shop
Lightbox problem
svsanchez:
Thanks dbs, I think it will have to do something with the DIVs. Haven't solved it yet but I feel I'm on the right path thanks to your link!
freeSbee:
Hi svsanchez
You have to include the Bakery frontend.css stylesheet that provides the necessary Lightbox styling:
http://www.bakery-shop.ch/#css
Regards Christoph
instantflorian:
Hi,
there is still the problem that both libraries jQuery and prototype.js are loaded. If you don't need jQuery anewhere else, you can remove the line
--- Code: ---<script type="text/javascript" src="http://www.compugangas.com.gt/templates/round/jquery-2.1.1.js"></script>
--- End code ---
from the head of your template and try again.
If you need jQuery, you can either update bakery to 1.70 (but take care of the side effects, see release notes), this version does not use prototype any more.
The other possibilty is to edit the modules/bakery/view_item.php, if you don't want to update Bakery.
You can replace the lines in view_item.php where the lightbox is built manually with those from the view_item.php of Bakery 1.70 and edit the line where the lightbox link is built accordingly.
Or you remove the lines where prototype is loaded (around lines 40ff.) completely and edit the line where the thumbnail/lightbox links are generated (around line 158).
The line should be changed to something like
--- Code: ---$prepend = "<a href='".$img_url.$image_file."' class='grouped_elements' title='".$img_title."'><img src='";
--- End code ---
or
--- Code: ---$prepend = "<a href='".$img_url.$image_file."' rel='lightbox' title='".$img_title."'><img src='";
--- End code ---
Then you can add any jQuery lightbox script to your template which hopefully will do the trick.
hth
-Florian.
svsanchez:
Hello everyone, thank you for your help. I was able to solve this by making again the template since I couldn't "clean" my code. Thanks to you I could determine that the lightbox was indeed working and that it was not the problem, but my template was so just making it again little by little fixed it :)
Navigation
[0] Message Index
[*] Previous page
Go to full version