Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Sean Roh
    Participant

    We need to load the widget from Desktop view only. However, the website we worked on uses a cookie and mobile user agent detection to switch the interface and users can force changing the view between mobile version and desktop version.

    The problem is that when people visit the website from desktop but prefers to view in mobile interface, the floating widget is still loading.

    I need help figuring out a way to load the floating widget using a function call from my theme so it only loads when the conditions met.

    Please advise!

    Hi Sean,

    You can keep the widget box’s “Initial state” to “closed” and use the javascript API to open the widget box as per your requirement.

    Please follow the doc below on “custom trigger”.

    Custom trigger

    Thanks,
    Aakash

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter