WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: jQuery Colorbox] How can I add class="colorbox-ID" to wordpress gallery (6 posts)

  1. danatstadiumvolleyball
    Member
    Posted 4 years ago #

    The FAQ says to exclude do this; but where do i just do this and what is the code... ?

  2. danatstadiumvolleyball
    Member
    Posted 4 years ago #

    so - if I understand now - using wp built in gallery has no way to do this. correct?

  3. techotronic
    Member
    Posted 4 years ago #

    Hi,

    um, if I understand correctly, you just want the Colorbox to work for whole WordPress galleries just like the demo on my website?
    That is easy, just activate the plugin, go to the settings page and set the plugin to auto for all images.

    Cheers,
    Arne

  4. danatstadiumvolleyball
    Member
    Posted 4 years ago #

    But sometimes I want to exclude colorbox from working - wp gallery doesn't give me an obvious place to insert a class.

    FAQ- Add the CSS class “colorbox-off” to the image you want to exclude.
    jQuery Colorbox does not add the colorbox CSS class to images that already contain the CSS class “colorbox-off”.

    for instance can i have the gallery type grouping but when clicking the image not do the colorbox thing but treat as normal link. I'm probably misunderstanding how this can be done.

  5. techotronic
    Member
    Posted 4 years ago #

    Ah, ok, I misunderstood the first time.

    You are right - it seems that there is no built-in way to add CSS classes to images inside a WordPress gallery :-(

  6. danatstadiumvolleyball
    Member
    Posted 4 years ago #

    I changed my needs to keep using this plugin...

Topic Closed

This topic has been closed to new replies.

About this Topic