WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Colorbox
[resolved] How do you group inline content? (8 posts)

  1. acurran
    Member
    Posted 2 years ago #

    Hello,
    I have tried adding rel="group1" to each of the colorbox content links (in addition to class="colorbox-link") but that is not giving me the next/prev arrows as I would expect.

    How do you group content links so that you can navigate from content item to content item using the arrows, just like the way you do for images?
    Thanks,
    Aidan

    http://wordpress.org/extend/plugins/jquery-colorbox/

  2. duckonwater
    Member
    Posted 2 years ago #

    I would also really like to know how to do this, anyone have the answer?

  3. techotronic
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,
    at the moment, this is not possible.

    I guess I could add a similar functionality to a newer version as the one for images.
    If a link has the CSS class "colorbox-link", it will not be grouped.
    If a link has the CSS class "colorbox-link-ID" (where ID is a number like "123"), it will be grouped with all other links that have the same ID.

    Cheers,
    Arne

  4. duckonwater
    Member
    Posted 2 years ago #

    That would be a fantastic function as currently there seems to be a lack anywhere on the web where this is possible - not without some super heavy hacking. I think it would definitely be a USP for you plugin if you were to offer this :)

  5. ibeedug
    Member
    Posted 2 years ago #

    If a link has the CSS class "colorbox-link", it will not be grouped.
    If a link has the CSS class "colorbox-link-ID" (where ID is a number like "123"), it will be grouped with all other links that have the same ID.

    Is there a way to over ride the class ID per [gallery] shortcode? I have numerous images attached to a page. I selectively display sections of the attachments by using the 'include' function of the gallery shortcode.

    EXAMPLE:

    <h2>Hospitality</h2>
    [gallery link="file" columns="2" include="4389, 4388" ]
    [expand title="View More Hospitality Content" swaptitle="Close" rel="design-highlander" findme="auto" trigpos="below" id="hospitalityContent"]
    [gallery class="colorbox-9000" link="file" columns="2" include="4387, 4386, 4385, 4384, 4383, 4382, 4381, 4380, 4379, 4378, 4377, 4376, 4375, 4374, 4373, 4372, 4371, 4370, 4369, 4368, 4367, 4366, 4365, 4364, 4363, 4362, 4361, 4360, 4359, 4358, 4357, 4338, 4335, 4341, 4337, 4351, 4350, 4349, 4348, 4347, 4346, 4345, 4343, 4344, 4339, 4334, 4336" ]
    [/expand]
    
    <div class="SecDiv23"></div>
    
    <h2>Education</h2>
    [gallery class="9001" link="file" columns="2" include="4406, 4403" ]
    [expand title="View More Educational Content" swaptitle="Close" rel="design-highlander" findme="auto" trigpos="below" id="educationContent" ]
    [gallery  class="9001" link="file" columns="2" include="4411, 4410, 4409, 4408, 4405, 4404, 4402, 4352" ]
    [/expand]
    
    <div class="SecDiv23"></div>

    In the example above, I would like to only group the images within each category.

    Your plug-in has the option of automatically grouping galleries on one page/post, and is currently doing so by assigning a colorbox-ID that is the same on all images contained on the page.

    I would like to over ride that assigned CLASS, and provide my own.

    Thank you.

  6. techotronic
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    when the page is rendered (and the plugin is activated to add Colorbox automatically), every image that doesn't already have a CSS class "colorbox-" will get one with the pattern "colorbox-ID" where ID is the id of the post or page.
    Afterwards, all images with the same "colorbox-ID" are grouped.

    If you add for example "colorbox-1" to all images of the first gallery and "colorbox-2" to all of the second, the images would be grouped in different groups.

    Cheers,
    Arne

  7. amycarolyn
    Member
    Posted 2 years ago #

    Did you end up deciding to add this functionality? There are plenty of similar plugins that open inline content but I'm having trouble finding one where I can group them with previous/next links. Thank you.

  8. techotronic
    Member
    Plugin Author

    Posted 1 year ago #

    yes, version 4.4 can group links that have the CSS class "colorbox-link-ID".
    Cheers,
    Arne

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic