4 posts
  • Has collected 10+ items on Envato Market
  • Located in Italy
  • Has been part of the Envato Community for over 3 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. :-(

5492 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 3 years
jolunavi says

yes, it does not work!

5492 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 3 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 4 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 3 years
jolunavi says

grazie mille :)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by