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
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/