Support » Plugins and Hacks » [Plugin: jQuery Colorbox] manual grouping

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

    since on that site there are no post/page contents (images) displayed that would get an automatic colorbox-class, you could go ahead and fake a post/page id.
    Instead of giving them the class “colorbox-manual” give them e.g. “colorbox-123” or “colorbox-999” (just any number, doesn’t matter which)

    Or you could open the file “colorbox-javascript.php” and delete lines 31-34:

    <?php  //if groudId is colorbox-manual, set groupId to "nofollow" so that images with that class are not grouped ?>
     if ($groupId == "colorbox-manual") {
      $groupId = "nofollow";
    }

    Best regards,
    Arne

    Thank you very much for the quick reply.

    I’m not sure where the class “colorbox-manual” goes (even though by using Firebug I see it on the blog page).

    The code I use to place the images is this:

    <a>/images/portfolio/eaGolem.jpg" rel="gallery"><img src="<?php bloginfo('template_directory') ?>/images/thumbs/eaGolem_tmb.jpg" width="230" height="115" alt="Golem"></a>
    
    <a>/images/portfolio/eaBMmaze.jpg" rel="gallery"><img src="<?php bloginfo('template_directory') ?>/images/thumbs/eaBMmaze_tmb.jpg" width="230" height="115" alt="Businessman in maze"></a>

    Where would I put the div class?

    I’m not very technical unfortunately, so I’m fumbling a bit. Thanks for the patience.

    I’ll try removing the lines you suggested, but personally, I’d rather keep your pluging as intact as possible.

    Thanks again.

    double post…

    Hi,
    the class needs to be added to the <img> tags.
    I.e.:
    <img class="colorbox-123" src="<?php bloginfo('template_directory') ?>/images/thumbs/eaGolem_tmb.jpg" width="230" height="115" alt="Golem"/>

    If you also add a title attribute, the title will be displayed in the colorbox.

    <img class="colorbox-123" src="<?php bloginfo('template_directory') ?>/images/thumbs/eaGolem_tmb.jpg" width="230" height="115" alt="Golem" title="Golem"/>

    Best regards,
    Arne

    Thank you very much, Arne. Much appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: jQuery Colorbox] manual grouping’ is closed to new replies.