New Landing How can we help? Themeforest Theme Support Supreme Lightbox on single image – Supreme Theme

Viewing 5 posts - 16 through 20 (of 20 total)
  • Posted in: Supreme
  • #4346
    photosbychrismartin
    Member
    Post count: 6

    Yes, I was asking Cosmin initially….

    #4396
    Cosmin – SUPPORT
    Member
    Post count: 3851

    I’ve replied in your other thread ๐Ÿ™‚

    Again, the code is:

    <a href="image.jpg" class="view" rel="nofollow">My Link</a>

    Regards,
    โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”

    Cosmin
    Support Assistant

    #4401
    photosbychrismartin
    Member
    Post count: 6

    Thanks so much Cosmin, that worked!!!

    #4438
    [email protected]
    Member
    Post count: 5

    Is there any way to make this a universal change instead of having to change the code on each image, while doing the post?

     

    I’d like to not have to hand edit each one. Thanks!

    #4453
    Cosmin – SUPPORT
    Member
    Post count: 3851

    We wouldn’t want to override the content or break other plugins, so we didn’t make it global; but you can try adding this to js/functions.js at the top (say, on line 8, just above page functions):

    $("a[href$='.jpg'], a[href$='.jpeg'], a[href$='.png']").addClass("view");

    This is just off the top of my head, haven’t tested, it may or may not work, as it basically adds a class after the HTML structure is generated and interpreted (so there is a chance the lightbox triggers earlier and doesn’t see that added class, rendering the code useless).

    Regards,

    โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”

    Cosmin
    Support Assistant

Viewing 5 posts - 16 through 20 (of 20 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register