• Resolved America Jr

    (@cmccrone)


    Is it possible to have some sort of trigger or I could assign a CSS class or something like that to one of my builder buttons and it would launch the share window?

    Great plugin! Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author Jose Varghese

    (@josevarghese)

    Hi @cmccrone

    Thanks for using Super Web Share and also for opening a topic.

    Using the class superwebshare_trigger will help to show the share prompt or modal window. But for that to work, we have added some conditions for the loading of the JS script on a page (for prompting the modal or share sheet), like either the fallback or inline settings within the Super Web Share settings need to be enabled, and the specific CPT at which you want to show the share sheet or modal (page/post or others) needs to be enabled for any of the fallback or inline in our settings page. The shortcodes can also be used, but the styles added to it must be loaded, and you don’t have the option to show it for a button you have added.

    We added these conditions to optimize our plugin so that our scripts load on a page only if the user has the settings on your plugin’s settings page. Otherwise, we would be adding our small scripts without any need on that page, and we believe that wouldn’t be a good approach.

    For your case, we need to improve this a bit more by providing an option within the settings for better control or an option to select the scripts to load on some pages based on your interests. Enabling the fallback and inline and selecting the CPT will show the button on the page using the CSS class, but need to disable it manually by editing the pages via our metabox, which will be a time-consuming process. I will put this on our development table to provide this in a better way.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.