• Resolved MikkelCrunch

    (@mikkelcrunch)


    Hi,

    Thank you for developing such a straightforward and functional plugin. It works perfectly out of the box when implemented through the Gutenberg “Shortcode” block.

    However, I’ve encountered an issue when trying to use the plugin in a custom template on the front page of my site. I’ve tried two methods: inserting the shortcode via do_shortcode() in the PHP template and using an ACF text field to output the shortcode. In both cases, the flipbook displays correctly, but the full-screen functionality behaves unexpectedly.

    Here’s the problem:
    When I press the full-screen icon, the mode activates (I see the dark background), but the flipbook (PDF) remains small, positioned in the bottom-left corner of the screen. It doesn’t scale up to fill the screen as expected. This behavior differs from the same shortcode used on another page via the Gutenberg “Shortcode” block, where everything works as it should.

    • There are no errors in the browser console.
    • The network tab shows that all assets seem to be loading as expected.

    It seems like some part of the full-screen logic may not be fully triggered when the shortcode is inserted via do_shortcode() or ACF.

    Is there a specific initialization function or script that I should manually trigger when using the shortcode in a custom template or ACF field? Or is there something else I might be missing?

    Any guidance or advice would be greatly appreciated.

    Best regards,
    Mikkel

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.