how to remove the play/skip button on video

Topic summary

A user seeks to remove video playback controls (play/pause and skip buttons) from their Shopify store’s video overlay.

Initial Suggestions:

  • One responder suggested removing the “controls” property from the video slider section, but the user confirmed this property doesn’t exist in their theme settings.
  • Another responder offered to help via private message.

Working Solution Provided:
A JavaScript code snippet was shared to remove the controls attribute from all video tags:

document.addEventListener('DOMContentLoaded', () => {
    const videos = document.querySelectorAll('video');
    videos.forEach(video => video.removeAttribute('controls'));
});

Implementation Issue:
The user initially attempted to save the code incorrectly (likely as CSS). They were then instructed to:

  1. Navigate to Online Store → Edit Code
  2. Locate the theme.liquid file
  3. Insert the JavaScript within <script> tags before the closing </body> tag
  4. Save and refresh

Status: The discussion remains open; no confirmation yet that the solution was successfully implemented.

Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

Hi, We would like to remove the overlay where you can pause or skip the video. Can someone help me with this?

https://5c3g22rzl7yv9dpg-81021141316.shopifypreview.com/pages?preview_key=f81affa8aaa4998c5d633afa1564212a

1 Like

you need to remove the controls property in the video slider section.

Hi, I dont have controls property in my section.

check p/m please.

If there are no settings within the theme for this, this JS should help. It removes the “controls” attribute for all video tags on the page.

document.addEventListener('DOMContentLoaded', () => {
    const videos = document.querySelectorAll('video');
    videos.forEach(video => video.removeAttribute('controls'));
});

I cant save the code.

@User026 , this isn’t CSS. You need to embed it differently.

  1. Go to “Online Store”

  2. Three dots → Edit Code

  3. Find the theme.liquid file

  4. Add the following code at the bottom of the file. Right before the closing tag

  5. Save and refresh the target store page