Jump to content

Dor Reznik

Member
  • Posts

    10
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Dor Reznik reacted to paul2009 in Audio Blocks opening new window in IOS   
    On iOS devices (iPhones, iPads) Audio Blocks detect that iOS is being used and they default to the built-in iOS player that opens on a new page. 
    You should be able to stop this by using some code to tell the Squarespace Audio Block that the visitor is not using iOS. This should prevent the block attempting to invoke the built in iOS player.  To do this, add the following script to Settings > Advanced > Code Injection > Footer:
    <script>   window.addEventListener("load", function(){     Y.UA.ios = 0;    }) </script> Note: This was tested on a Squarespace 7.1 site running Safari on iOS 15.
      If my post helped you, please click a 'Like' or 'Thanks' icon below  ⬇️
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.