Jump to content

Change Play Button on Embedded Video

Recommended Posts

  • Replies 6
  • Views 3.4k
  • Created
  • Last Reply
  • 2 months later...
  • 4 months later...
  • 1 month later...
On 10/15/2020 at 12:43 AM, aa6 said:

Thank you for posting the code, and sorry for the dumb question... but where do I insert that code if I just want it to modify one video gallery block ? 

Thanks!

You need to target video gallery block id. Can you share site url? We can check easier.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 4 months later...

You can add some custom css to get what you want.  I just wanted to make the default icon bigger, so I used this: 

.sqs-video-wrapper .sqs-video-overlay .sqs-video-icon {
   background-size: 88px;
   height: 88px;
   width: 88px;
   margin-left: -44px; /* for centering the icon, must be 1/2 the dimension */
   margin-top: -44px;
}

Be warned it looks a bit blurry on a high dpi screen like a phone or high end laptop.

If you want to use a different icon, you can change the background property.  The default is:

background: url('//assets.squarespace.com/universal/images-v6/damask/play-button@2x.png')

If you upload a new icon as an image you can update the background property to reference it, and use the above to size it appropriately.

Link to comment

Archived

This topic is now archived and is closed to further replies.

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