4 posts
  • Has collected 10+ items on Envato Market
  • Located in Italy
  • Has been part of the Envato Community for over 2 years
jolunavi says

Hello all. I wanted to ask how you can do to use “Lightbox for WordPress Evolution” to load a page. HTML or PHP when someone comes to my site? I tried with this. but not working.:

How to automatically start Lightbox on page load?

Add the code below in the footer.php of your theme just before tag:

<script type="text/javascript"> jQuery(document).ready(function(){ jQuery.lightbox("image.jpg"); }); </script>

this script gives me upload an image but not a page. :-(

5461 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

Have you considered changing image.png to page URL like index.php

4 posts
  • Has collected 10+ items on Envato Market
  • Located in Italy
  • Has been part of the Envato Community for over 2 years
jolunavi says

yes, it does not work!

5461 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says
4 posts
  • Has collected 10+ items on Envato Market
  • Located in Italy
  • Has been part of the Envato Community for over 2 years
jolunavi says

hmmm….

How to automatically start Lightbox on page load? Simply add the following code:

<script type="text/javascript"> jQuery(document).ready(function(){ jQuery.lightbox("image.jpg"); }); </script>

I read it but it does not work. I wish you enforceability alone when loading a page. I have tried in many ways. But that’s okay. I did some research on google but almost nobody is talking about this thing.

sorry if my English sucks, is that I use the google translator to write to you.

I speak Italian.

I found the script to work but who say they are not those of “Evolution Canyon lightbox”. if anyone knows how this code, please let me know. Thank you. :-)

1 post
  • Has been part of the Envato Community for over 3 years
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
  • Located in United States
eaguilar9 says

[NOTE: With Loghtbox Evolution 1.7] Hey jolunvi, I has trying to do the same thing with a youtube video and it turns out you dont need to “http://”. some how it wont load so I used this:

jQuery(document).ready(function($){
    $.lightbox("youtube.com/watch?v=aHjpOzsQ9YI");
  });

and it seem to work. Also if you are going to load a html or php that is locally stored you need to add the paramaters like:

jQuery(document).ready(function($){ $.lightbox(“promo-form.html?lightbox[width]=680&lightbox[height]=600”); });

4 posts
  • Has collected 10+ items on Envato Market
  • Located in Italy
  • Has been part of the Envato Community for over 2 years
jolunavi says

grazie mille :)

by
by
by
by
by
by