Jump to content

Removing fullscreen mode on video blocks

Recommended Posts

Posted

Hello @lolyporo, I hope you're having a great day! I'm here to help you now. Disabling the double-click isn’t a simple task, as it likely requires some JavaScript. For now, I’ll focus on a CSS solution that might help. The following CSS will remove the fullscreen icon from the player controls, but please note that the double-click/tap will still work. This code only applies to self-hosted videos, not YouTube or Vimeo.

  1. Navigate to Pages > Website Tools > Custom CSS.
  2. Paste the following code into the CSS editor.

 

 

// Hide fullscreen button/icon
.video-player .plyr--fullscreen-enabled [data-plyr=fullscreen] {
    display: none !important;
}

Let me know if it works for you.

- Answered by Iuno from sparkplugin.com

forumsignature-recommendedcopy2.png.0579645eb1430dc7c1059541dc6456c6.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.