Dynamically display Hash Value of Content Area Modal

Hi there! Specific question regarding the Content Area Modal (v2-)element:

I have a Content Area Modal set with hash value “mymodal”, so if I go to mywebsite.com/#mymodal it will automatically open. But I’d like it to be shareable too.

Is there any way to dynamically display the Content Area Modal’s hash value within its own content?

i.e. to display a text within the element’s content field saying “Share this link: mysite.com/ mymodal

I know dynamic content can be used to generate contextually aware text, like a headline that automatically displays the current post’s or page’s Post Name and/or Permalink. I wonder if the same would apply for the Modals?

Hey Meng,

Regretfully, this is not possible. I’ll post this as a feature request though to see if this will be possible in the future. For now, you’ll need to create your own shortcode in combination with some custom Javascript to get the Toggle Hash value. Technically, you need to get the data-x-toggle-hash value and output it in your shortcode.

Thanks.

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