@joshuamajch1 Sorry for the late response. Have you tried adding a call to action block within your stories? You can place a button at the end of your story to direct users back.
No Worries James. Sure that was the first thing I did, but that’s not working for us. Clicking on CTA in a Story is opened as a link in a new tab.
Is it possible to modify the stories template and add a static element?
Could you please advice me on what template file must be edited in order to add a button next to the “share” icon which appears on every stories last slide?
This way we would add a “go back in history” button, which would work perfectly well for our use case.
The stories template is hardcoded and enforced by the AMP stories runtime and cannot be modified in such a way. This is done in order to have a consistent user experience across the board.
If you need a close/back button in such a location, I recommend filing a feature request on GitHub.
Since AMP stories support amp-sidebar you could try modifying the plugin’s output by adding a sidebar with a menu in it that contains such a link. However, we don’t have an official / easy way for this at the moment, so I don’t have a code snippet ready for you.
If you want to open a story in a lightbox, you could create a lightbox on your website and just load the story in an iframe.
Hope that helps.