WordPress.org

Ready to get started?Download WordPress

Forums

WP jQuery Lightbox
[resolved] Getting lightbox to work on custom gallery (6 posts)

  1. Genevieve
    Member
    Posted 1 year ago #

    I've developed a theme for a client that uses a custom product post type. The user can upload three product images on the custom post type entry page, and I've coded them into the theme to display in a neat little jquery gallery (this one specifically: http://www.pikachoose.com).

    I've got your plugin installed on the theme, and it works great for images inserted into posts, but I'd like to also apply it to the custom gallery I created for my custom post type. I coded it so the image links include rel="lightbox[x]" (where x is the post id), so I believe I have all the right code in place--but the images still open as a new link, rather than in the lightbox.

    My initial thought is that it's because the custom post type info is called after the lightbox script is run, but I'm not sure how to check to see if that's indeed what's happening. And if so, how can I call the lightbox script AFTER the post info is loaded?

    Thanks for any help you can give!

    http://wordpress.org/extend/plugins/wp-jquery-lightbox/

  2. ulfben
    Member
    Plugin Author

    Posted 1 year ago #

    I bet you 99 to 1 that your site is throwing a javascript error that breaks the script, and thus rendering the lightbox inert.

    Fix that.

  3. Genevieve
    Member
    Posted 1 year ago #

    Back again. I've verified that there are no javascript errors on the page. Lightbox also works just fine on all other images in regular posts. It's just my custom galleries that it doesn't work on.

  4. ulfben
    Member
    Plugin Author

    Posted 1 year ago #

    You missed the part of the trouble shooting that said; provide a link.

  5. Genevieve
    Member
    Posted 1 year ago #

    Unfortunately, the client's server setup is not online yet (I'm building it via RDC--it's the strangest setup I've ever used), so I can't provide a link. But I ended up building a fancybox js setup into the custom gallery, since I couldn't get it to work with this plugin. Thanks, tho!

  6. ulfben
    Member
    Plugin Author

    Posted 1 year ago #

    Cool. Good luck with the build.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.