× Discussion about "Mobility" Joomla template.

Topic-icon LIghtbox Not Working

  • antares
  • antares's Avatar Topic Author
  • Visitor
  • Visitor
8 years 4 months ago #493 by antares
LIghtbox Not Working was created by antares
Hi,

I have turned on the Lightbox script option under the "Hot mobility" template. Looking at the generated source code it is including the following code;

<script type="text/javascript" src="/joomla/templates/hot_mobility/js/jquery.lightbox-0.5.min.js"></script>

The following code is for the image;

<span style="font-size: x-small;"><a href="/joomla/images/stories/i2g screencap.gif">
<p style="text-align: center;"><img src="/joomla/images/stories/i2g screencap.gif" width="500" alt="I2G Screenshot" style="vertical-align: middle;" /></p>
</a>

However, the link just opens to a normal image page; no Lightbox!

Here is page link...
www.antares.com.au/joomla/index.php/soft...-gis-camera-software

Any ideas?

peter King

Please Log in or Create an account to join the conversation.

  • antares
  • antares's Avatar Topic Author
  • Visitor
  • Visitor
8 years 4 months ago #494 by antares
Replied by antares on topic LIghtbox Not Working
Hi,

Further to the above it is now working...i needed the id "gallery".

However, the path to the "close button" is wrong! The Jscript is creating a path that includes the entire path where the lightbox link image is located as follows;

"/joomla/index.php/software-products/templates/hot_mobility/images/lightbox-btn-close.gif"

the path should be "joomla/templates..." not "joomla/index.php/software-products/"
This stopes the Close button from displaying.

i don't want to change the js script in case I break it :)

Any ideas?

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago - 8 years 4 months ago #495 by milos
Replied by milos on topic LIghtbox Not Working
Hi,

Why don't you enable mod_rewrite for SEF urls? I think it will work after that. Anyway, you can open file /js/jquery.lightbox-0.5.min.js and there you will find 5 links to the icon images. One of them is:
templates/hot_mobility/images/lightbox-btn-close.gif

Change it to:
http://www.yoursite.com/templates/hot_mobility/images/lightbox-btn-close.gif
Last edit: 8 years 4 months ago by milos.

Please Log in or Create an account to join the conversation.

Moderators: milos
Time to create page: 0.144 seconds