Make Off-Canvas widget selectable from within templates #29584
Tchelet-Levi
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Prerequisites
What problem is your feature request going to solve? Please describe..
Say I have an off canvas widget in the header for leaving one's contact information. We'll call it
Contact Off Canvas
.It's in the header for two reasons.
Contact Off Canvas
.Contact Off Canvas
.Unfortunately, Dynamic Tags does not recognize
Contact Off Canvas
when adding buttons to toggle it outside of the header, so this isn't possible.Describe the solution you'd like.
It would be great if Dynamic Tags would recognize every Off Canvas in the current page, regardless of which template part is currently loaded (header, footer, custom, etc).
That way we could have one 'global' Off Canvas widget at the header that CTAs from withing other template parts such as The Content could easily toggle.
Describe alternatives you've considered.
I have tried simply duplicating the Off Canvas widget to the header and to every other template part that needed to reference it. The problem is, this actually is really buggy as multiple off canvas widgets get opened at the same time.
Also I'd like to avoid duplicating the widget as it is bad for performance and also just plain confusing to deal with.
Another thing I have tried which does work is simply copying the href from the anchor tag that is referencing the Off Canvas widget (Looks like
#elementor-action%3Aaction%3Doff_canvas%3Aopen%26settings%3{ID}
) and while it does work, it doesn't handle the aria-labels which is bad for accessibility.Additional context
There is actually a bug at the moment which works in my favor. The problem is I struggle to reproduce it but it goes as follows:
Problem is, it only works half the time and I am afraid it will break with future updates.
Agreement
Beta Was this translation helpful? Give feedback.
All reactions