Closing Off-canvas via engagement

So I am using an Off Canvas area for an instagram feed, when I click on any of the posts within the feed it’s designed to open a new centred layer:

How do I get the OC to close automatically upon engagement with a feed link please? Thanks

Hello @wolfproductions,

Thank you for the inquiry.

Have you tried applying the custom attribute data-x-toggle-close=“1” to the element containing the feed links? When the element with this attribute is clicked, it should close the Off-Canvas (OC) element. Please check the documentation for more details about this attribute: https://theme.co/docs/toggleable#closing-the-toggleable

Watching this video may also help: https://www.youtube.com/watch?v=FYZt-vI-XLw

Let us know if you need more info.

Best regards,

Thanks Isamael, I tried adding adding a custom toggle close and just closes the OC when I click on ‘load more’ which I don’t want it to do… as that’s supposed to be loading more of the feed in the OC area. It’s when I click on a post I need it to close.

This is the site: https://eviewillowstaging-com.stackstaging.com/

The Insta feed I am using is this: https://elfsight.com/blog/how-to-embed-instagram-feed-on-website/

Thank you for the update. The content inside the eapps-instagram-feed element is not editable using the Cornerstone builder, so we will not be able to modify it to close the OC element. You may need to contact the plugin developer for further assistance, as we do not provide support for third-party plugins. If you’re interested, feel free to check out our One service.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.