Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter nanuksteeth

    (@nanuksteeth)

    OK. My apologies for this. After a lot of head scratching, it turns out that the SmartMag theme uses some javascript to add (or overwrite!) the rel atribute for all image tags, automatically adding the pretty photo lightbox for all single images and galleries. However, it uses the default gallery css class to identify galleries otherwise it applies a prettyPhoto rel attribute without the [gallery_id] filter. I fixed the issue by adding the mg-image-tiles css class to the list to be processed by this function, and now everything works.

    Your plugin works exactly as specified. Thanks for responding anyway.

    Regards,

    Nick

    Thread Starter nanuksteeth

    (@nanuksteeth)

    OK, after a bit of research..I think the square brackets and their content are being removed because they’re being interpreted as a shortcode.

    I even modified your plugin to append the custom rel attribute string with “[gallery ID]“, it appears OK in the HTML string for output within the plugin, but never makes it to the browser.

    Regards,

    Nick

    Thread Starter nanuksteeth

    (@nanuksteeth)

    Hi,

    that’s great, but I have noticed that when specifying a rel attribute which will allow the default lightbox to group images into a gallery e.g prettyPhoto[gal1], the “[gal1]” part of the string is not output, resulting in a collection of images which are not grouped. This means that the lightbox navigation is not enabled, which is what I really want. Any idea how I might achieve this?

    Nick

    Thread Starter nanuksteeth

    (@nanuksteeth)

    Thanks for replying.

    The additions for the functions.php file throw an error. I’m not sure why.

    However, I though a combination of setting “Thumbnail Click Opens: Original Image”, and using “Thumbnail Custom Rel Attribute:” property might work.

    Choosing “Thumbnail Click Opens: Original Image” stops the maxgalleria lightbox from displaying, but the underlying lightbox is still not linked by my “Thumbnail Custom Rel Attribute:”, which I cannot see being output at all.

    Does “Thumbnail Custom Rel Attribute:” place custom string on the thumnail rel property? Because setting this to the same for all images in a gallery would make my default lightbox work.

    Regards,

    Nick

    Thread Starter nanuksteeth

    (@nanuksteeth)

    No, the error console show nothing. It’s really odd. If I delete my cache, and load the page, then click on the FSG link, the overlay comes up, but not the rest of the page assets or the linked images. If I then reload the page, and click on the FSG link again, everything works fine.

    Regards,

    Nick

Viewing 5 replies - 1 through 5 (of 5 total)