Glightbox not working

Created on 23 October 2023, 8 months ago
Updated 27 October 2023, 8 months ago

Hi,

I just installed your module on my site running Drupal 10.1.5 and after following the instructions cannot seem to get a video to play in a lightbox popup. Here is the code I have on my page:

<div class="column">
<a class="glightbox-inline" href="/sites/default/files/2023-06/Section%201%20Dorsal%20Hand.mp4">Summary Anatomy Video</a>
</div>

Is there something I'm missing? Any thoughts you may have would be most appreciated.

Thank you.

πŸ’¬ Support request
Status

Closed: works as designed

Version

1.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States bill_redman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bill_redman
  • πŸ‡¦πŸ‡²Armenia levmyshkin Yerevan, Armenia

    Hi bill_redman, yes, sure, I have few ideas where it can be filtered by Drupal.

    1. Glightbox Inline module is enabled. It's a separate module in GLightbox package, so you need to install GLightbox and GLightbox Inline both:

      /admin/modules
    2. After you enable GLightbox Inline module, js/css files for GLightbox must be attached automatically
      to all pages:
    3. Drupal Text Formats can remove "class" attribute from Body or other field:
      /admin/config/content/formats
      You need to add "class" attribute to <a> tag:

      Or try to disable HTML filtering at all:

    I hope it will be helpful. If you have any errors in Recently Log Messages or in javascript console, please share it and I will investigate it.

  • Status changed to Needs review 8 months ago
  • πŸ‡¦πŸ‡²Armenia levmyshkin Yerevan, Armenia
  • πŸ‡ΊπŸ‡ΈUnited States bill_redman

    Hi levmyshkin,

    Thanks for the reply. It turns out that I had neglected to enable the GLightbox Inline module. I'm not quite sure how I missed that since I recall looking for it on the site. Anyway, whatever the reason, it doesn't matter. Once I enabled the module, my videos played in the popup as expected.

    Thanks again and thanks for creating these modules.

  • Status changed to Closed: works as designed 8 months ago
  • πŸ‡¦πŸ‡²Armenia levmyshkin Yerevan, Armenia
Production build 0.69.0 2024