• I’ve tried like hell to figure this out on my own, but I just can’t. I want to have a single image in my post that will link to a Fancy Box gallery. I have found a ton of solutions on line, but I don’t understand any of them. Whenever anyone writes… “use this code:” and then there’s a string of html code that I absolutely do not understand, I have no idea where to put it! That’s the problem – I just don’t understand what to do with these so-called solutions. Do I substitute it for something in my theme’s code, or the plug-in code? Or do I slap it right into the post? It’s just all greek to me and I like to figure things out on my own, but I’ve just hit a brick wall with this one.

    Can anyone hold my hand through this?
    Thanks!

    http://wordpress.org/extend/plugins/fancybox-for-wordpress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    This is an interesting question, maybe it would even be a nice option for the fancybox for wordpress plugin but i don’t want to add too many confusing options unless i’m sure it will be helpful.

    I could make a little plugin that uses jQuery to hide all except the first image, but i can’t say when i’ll have time to work on it.

    For a temporal fix, though, you could try something more rudimentary.

    Using the fancybox for wordpress plugin i assume you already have the gallery working and you need to hide all but one image.

    A little CSS that hides all images uploaded to your posts, adding this to your themes style.css:

    // Hide images from posts
    .entry-content a img{display:none}
    .show{display:block!important}

    Now all images linked in your posts would be hidden and when you create a post you would have to manually edit the HTML of one of the images adding class=”show” to it. That way only that picture would show.

    Problem is that this is a bit invasive and i would not recommend it unless you are desperate or you only needed on a few posts.

    Thread Starter kpelland

    (@kpelland)

    Hmmmm, thanks. Yes the gallery works but I just don’t want all 30 images in my gallery posted in my post. However, when I researched this in other forums, I found that people did have other solutions, I just had no idea what to do with them. You say with your solution, add it to my Theme style.css. I haven’t the foggiest idea how to do that… I know where the Theme editor is, but then where does it go? Here’s one posting I found – maybe you can make sense of it and determine whether it would do the trick for me on a more permanent, and less intrusive, basis.
    http://groups.google.com/group/fancybox/browse_thread/thread/549aed0d1708b392/b3e8fd3fdc1fb410?lnk=gst&q=gallery&pli=1.

    Does the solution given there make any sense to you?

    Hi,

    That’s a nice trick actually.

    They are just omitting the image tag in the rest of links, so no thumbails will show up.

    But depending on your settings, the plugin won’t automatically add fancybox to link that dont have a thumbnail, so there’s no fast and easy way to get this done without editting code.

    I did add this to the list of things to do, so in future versions i’ll try to find the best way to add this functionality in the settings page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: FancyBox for WordPress] Creating a Fancy Box image gallery using single thumbnail’ is closed to new replies.