• Добрый день.

    А как поместить HTML код в слайд вместо изображения? Оригинальный API это позволяет(

Viewing 1 replies (of 1 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    Putting HTML into slides is not possible with this plugin yet.

    The frontend script will only look for image links with certain attributes and add them as collection item with “src”. Adding HTML would require to identify the HTML blocks to add as “html” and also have some element in the page to open such a lightbox. Having an API alone does not help you here – this requires additional code in the frontend. To get an idea – this is the existing frontend script for the plugin:

    https://github.com/arnowelzel/lightbox-photoswipe/blob/main/src/js/frontend.js

    And this is what to do to get HTML into the lightbox:

    https://photoswipe.com/documentation/custom-html-in-slides.html

    If anyone wants to extend this for HTML blocks as well – pull requests on Github are always welcome. At the moment I don’t have time to implement such a feature.

Viewing 1 replies (of 1 total)
  • The topic ‘HTML in slide’ is closed to new replies.