WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Colorbox
[resolved] Colorbox works on some images but not all.... (5 posts)

  1. Agnes
    Member
    Posted 1 year ago #

    I have installed colorbox and tested it against other plugins: it seems to me much better!
    (I had an old wp-lightbox that I am trying to replace)

    However, I cant get it to work in one instance and dont get why....

    On this page: http://www.morija.co.ls/morija/objects/basotho-hat/ (demo/demo) it works on the featured image as well as gallery

    On this page http://www.morija.co.ls/morija/museum/collections/basotho-objects/page/3/
    It should work on zoom (other plugins do) but it does not.

    My code is like:

    <a rel="lightbox[objects]" class="thickbox-link" href="
    <?php echo $image_url[0]; ?>" rel="nofollow" target="_blank"
    title="<h5><?php the_title();?></h5>
    <?php the_excerpt();?>
    <a href=&quot;<?php the_permalink();?>
    &quot; class=&quot;link-more&quot;>Read more</a>">ZOOM</a>

    And it renders in HTML:

    <a rel="lightbox[objects]" class="thickbox-link" href="http://www.morija.co.ls/morija/wp-content/uploads/content/demo-basotho4.jpg" target="_blank" title="<h5>Demo for Meri</h5>
    <p>This is just to show Meri how the admin will work for her.</p><a href=&quot;http://www.morija.co.ls/morija/objects/demo-for-meri/			&quot; class=&quot;link-more&quot;>Read more</a>">ZOOM</a>

    I have tried remove both rel="lightbox[archive]" and class="thickbox-link" from the link, but it still does not work.

    Any idea?

    The theme uses other jquery stuff, but because it works in toher places, I dont think it is the issue...?

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

  2. techotronic
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    I just took a look at your page, and jquery-colorbox doesn't seem to be active.

    Cheers,
    Arne

  3. Agnes
    Member
    Posted 1 year ago #

    Indeed, I ended up using a prettyphoto lightbox that was built in with my theme.
    I could not get it to wwotkk with this one
    But I appreacieaed it and certainjly will use it on anoter site!
    Thanks!
    Agnes

  4. tashana
    Member
    Posted 1 year ago #

    i tried installing other similar plugins and it was staying all the same - old posts were showing galleries/colorboxes/lightboxes normally while new didn't...
    was looking for differences between new and old posts and bingo! - looks like i found solution!

    In gallery settings (inside the post)>
    Link thumbnails to:
    "Image file" should be checked, not "Attachment page"
    //when "attachment page" is checked gallery/colorbox is not working

    hope it will help others as well :))

  5. Agnes
    Member
    Posted 1 year ago #

    Interesting...
    I am curious what is the output HTML when 'image file' or 'attachment page' is used!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic