• Resolved calooom

    (@calooom)


    Whilst I appreciate the fact there’s an Elementor embedding option, I found it a bit too limiting for my use-case. As such, I instead opted to make my own custom loop.

    It mostly works, but I have one question about how you can have the story “pop-up” as an overlay rather than being a new tab.

    For example, when I use the embed feature through Elementor (provided by Google Stories), clicking the story has it overlay the current page and an X allows the user to exit out. However, when I implement my own solution with the URL, it opens in a new tab. I’ve checked the source code for anything that may point me in the right direction, but can’t seem to find the answer.

    Anyone able to provide an answer?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    Hi there

    We don’t provide any Elementor embedding option. Are you perhaps referring to the Web Stories Gutenberg block?

    If you want to use a custom loop to display stories, you would need to build such an overlay yourself.

    That said, I recommend reading our guide about custom renderers at https://github.com/GoogleForCreators/web-stories-wp/blob/main/docs/web-stories-embeds.md

    You could make your custom renderer extend \Google\Web_Stories\Renderer\Stories\Generic_Renderer which would allow you to re-use the same overlay logic that this plugin uses.

    Though we don’t officially support that, as the implementation of \Google\Web_Stories\Renderer\Stories\Generic_Renderer might change in the future, so you need to be aware of that.

    As we haven’t received a response, I’ll mark this as resolved. Feel free to open a new support topic if you continue to encounter issues, or reopen this topic and we’d be happy to assist. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pop-up Link When Not Using Elementor Embed’ is closed to new replies.