• Hi, this is how I set up the code, but it doesn’t work. I am using v 2.0.4 with WP 4.9.6.

    <a href="<?php echo get_the_post_thumbnail_url(get_the_ID(), 'full'); ?>" title="<?php the_title() ?>" class="post-thumb" data-rel="lightbox">
    								<figure style="background-image:url(<?php echo get_the_post_thumbnail_url(get_the_ID(), 'thumb'); ?>);">
    								</figure>
    							</a>
    • This topic was modified 6 years, 5 months ago by mad_griffith.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ditch the “data-” part. Just use rel=”lightbox”

    Plugin Author dFactory

    (@dfactory)

    Ditch the “data-” part. Just use rel=”lightbox”

    this is not a solution definitelly

    @mad_griffith the code you posted should work properly.

    Did you try switching lightbox to a different one? Does that make any difference?
    Can you provide a valid link to your site please.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“data-rel” not working’ is closed to new replies.