• Hi! I’m trying to make advertisement on my site on a homepage. I use a custom homepage written in home.php and I want an .jpg image to pop up when this page is loaded. I put: <div style="display:none" class="fancybox-hidden"><div id="fancyboxID-1" style="width:900px;height:800px;"><a href="#fancyboxID-1"><img src="http://www.beaverpolska.nazwa.pl/product-images/keratin_start.jpg" alt=""/></a></div></div> in home.php. The result looks like this: . What am I doing wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter osiouek

    (@osiouek)

    http://www.beaverpolska.nazwa.pl/notworking.jpg sorry the link has miss somewhere. The image which I want to have in my fancybox is not the one which is shown “Design for unlimited..”

    Just do this:

    <a href=http://www.beaverpolska.nazwa.pl/product-images/keratin_start.jpg" class="fancybox" id="fancybox-auto" /></a>

    FancyBox was made for images so there is no need to show them as inline content. And no need for hidden divs that keep hiding the content even when it is in the overlay…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Easy Fancybox] On home page is not showing properly’ is closed to new replies.