WordPress.org

Ready to get started?Download WordPress

Forums

Gallery Carousel Without JetPack
Open all image links with carousel (18 posts)

  1. Philipp
    Member
    Posted 2 years ago #

    Does anyone has an idear how to let carousel also open images which aren't part of a gallery. I know some code from another plugin but I don't have any idear how to get it into the plugin:

    echo '<script>jQuery(function($){$("a[href$=\'jpg\'],a[href$=\'jpeg\'],a[href$=\'JPG\'],a[href$=\'JPEG\'],a[href$=\'png\'],a[href$=\'PNG\'],a[href$=\'gif\'],a[href$=\'gif\'],a[href$=\'tif\'],a[href$=\'TIF\'],a[href$=\'tiff\'],a[href$=\'TIFF\'],a[href$=\'BMP\'],a[href$=\'bmp\']").colorbox({ maxHeight:\'' . SIMPLECOLORBOX_HEIGHT . '%\',opacity:\'' . SIMPLECOLORBOX_OPACITY . '\'});});</script>';

    Best!

    http://wordpress.org/extend/plugins/carousel-without-jetpack/

  2. Syed Balkhi
    Member
    Plugin Author

    Posted 2 years ago #

    The whole point of a carousel is to allow a good navigation method through out the gallery. Not sure if it would be beneficial for the user to open each image in a carousel view. Then close it to see the next image. I know what lightbox plugins do is add a specific class to the images. Then when the class is found, a lightbox opens.

  3. Philipp
    Member
    Posted 2 years ago #

    You got me wrong. Of cause for a [gallery] it's perfect. But I would also like to open the images which don't belong to a gallery to open inside the carousel.

    Best!

  4. Syed Balkhi
    Member
    Plugin Author

    Posted 2 years ago #

    Are you suggesting something that Facebook has... so u simply just keep on navigating through photos in the order they were inserted in??

    Because we would need to know how to sort those images... which image should load first in the carousel... which should be the last...

  5. Philipp
    Member
    Posted 2 years ago #

    Thanks for your answer!

    Yes, something like you mentioned. At the moment just the pictures inside a [gallery] get loaded inside Carousel. So all other pictures of an article which are linked to the image file (.jpg,...) are opened as a new tab in the browser.

    I like your idear to open all images which are linked to their source file (.jpg,...) inside the Carousel. So that it all pictures of an article/page. It could be sorted by the order they show up in the artikel. From top to bottom.

    Chears!

  6. Syed Balkhi
    Member
    Plugin Author

    Posted 2 years ago #

    Philipp unfortunately that goes way beyond what this plugin is meant for. Don't think that I will be adding that feature in.

  7. Philipp
    Member
    Posted 2 years ago #

    Thanks for the answer.
    Would it be possible just to open single images which are linked to an image file inside the carousel? Without sorting... Just klick an image outside the [gallery] and it opens.

    Have a look to this article one of my users wrote: http://goo.gl/S9Mjf

    The first to forth image are outside the [gallery] function. Those images are linked to their source (image) file. Let's open them in the same way the gallery at the bottom does... ?! ;)

    Best!

  8. Syed Balkhi
    Member
    Plugin Author

    Posted 2 years ago #

    Philipp, I don't think that we can add the navigation arrows because we don't know the start point and the finish point.

    As for opening it, I'm certain we can do that by tweaking the JS a little bit. However, this plugin is not meant for that. It is only to allow a better gallery experience.

    This is why I am not interested in adding that functionality.

  9. Edde Beket
    Member
    Posted 2 years ago #

    Exactly the discussion I was looking for! :-)

    That is... it doesn't seem it will be a feature of the plugin any time soon. ;-)

    I do agree with Philipp it would be nice to have all images behave in the same way - at least from a visitors point of view. I guess we'll have to do with lightbox for single images.

    Syed Balkhi: Thanks for a wonderful plugin!!!

  10. Philipp
    Member
    Posted 2 years ago #

    Maybe there is someone out there who is able to write a custom function which adds this support?! I don't like the idea to use another plugin. It's just wasted code to load and I think that it'll be confusing for the users.

  11. Edde Beket
    Member
    Posted 2 years ago #

    @Philipp I've found a solution of sorts...

    You can (ab)use the gallery shortcode:

    [gallery include="23"]

    where 23 is de attachment-ID of your ONE image.

  12. Philipp
    Member
    Posted 2 years ago #

    Thanks, but this won't work for me. I got a Multisite Network with some hundred blogs. I can't tell all the users to go your way... ;(

    Thanks!

  13. Gary Allman
    Member
    Posted 1 year ago #

    Thought I'd add my 10 cents to this. I really would like a lightbox add-on that looks just like the gallery but without the navigation arrows as they are unnecessary for a single image.

    Why? because currently when you click on an image the available display options are not very good: an image page, or just the plain image with no data. Neither are as nicely presented as the gallery screen.

    Anybody got suggestions?

  14. Syed Balkhi
    Member
    Plugin Author

    Posted 1 year ago #

    There are some other plugins that allow Lightbox option. This plugin will only provide functionality that Jetpack carousel offers. I will not be adding any extra add-ons.

  15. Gary Allman
    Member
    Posted 1 year ago #

    Thanks for the answer. I'll do some more research for something that matches my needs.

  16. alpinfieber
    Member
    Posted 1 year ago #

    Hi,

    Did someone find a solution for this question? I am using two ways of presenting pictures (which is not very userfriendly I think).
    I would really like to be able to show images in the same way. Single images could (in my opinion "should") be added as part of the gallery function. If you click on a single picture this image is enlarged and is part of the gallery.

    Usually I use one single picture at the beginning and a gallery at the end of an article.

    I really like the way carousel presents the images. If someone knows an alternative to jetpack I would appreciate any hint.

    Thanks
    Chris

  17. vectyr
    Member
    Posted 1 year ago #

    I'm having this same problem right now. I love the new jetpack carousel but then all the single images are left out to dry. How bout another Jetpack plugin that is separate but offers a single image solution?

    This is kind of a deal breaker for me since I often have posts that have galleries and single images at the same time and it makes for goofy functionality to have a sweet lightbox for the galleries and then a crappy image loading all by itself.

    Any other ideas?

  18. Gary Allman
    Member
    Posted 1 year ago #

    I'm currently using the 'Lightbox Plus ColorBox' plugin. It's not as nice as the Gallery lightbox, but I'm willing to live with it for the moment.

    If you try it out, to save some experimentation, I found setting the primary Lightbox Settings for 'size' to Maximum Width & Maximum height of 95% to give good results.

    You can see it in operation on my personal site: http://www.breakfastinamerica.me

    One other thing that works, though I've not played with it a lot is to insert a gallery with only one image.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.