Shopify themes, liquid, logos, and UX
Hello,
I am trying to create a autoplay video for my homepage that has an unmute button as well. Is there any way I could do this.
Here is an example of what I want: https://rh-ude.com/
Pass: YIVAN24
Thanks in advance
Solved! Go to the solution
This is an accepted solution.
Hi @YIVAN,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file base.css, theme.css, styles.css, custom.css or theme.scss.liquid
Step 3: Insert the below code at the bottom of the file -> Save
.custom-btn-muted {
position: absolute;
bottom: 15px;
right: 20px;
color: white;
text-transform: uppercase;
cursor: pointer;
}
Step 4: Find theme.liquid. Before close body tags. Pls insert this code:
<script>
let video = document.querySelector("#video");
if(video) {
video.parentNode.insertAdjacentHTML('beforeend', '<div class="custom-btn-muted">Unmuted</div>');
video.parentNode.style.position = "relative"
let btnCustomMuted = document.querySelector(".custom-btn-muted");
btnCustomMuted.addEventListener("click", () => {
if(video.muted) {
btnCustomMuted.textContent = "Muted";
}
else {
btnCustomMuted.textContent = "Unmuted";
}
video.muted = !video.muted;
})
}
</script>
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @YIVAN, Pls replace this code at file theme.liquid to new code:
<script>
let video = document.querySelector("#video");
if(video) {
video.parentNode.insertAdjacentHTML('beforeend', '<div class="custom-btn-muted">Unmute</div>');
video.parentNode.style.position = "relative"
let btnCustomMuted = document.querySelector(".custom-btn-muted");
btnCustomMuted.addEventListener("click", () => {
if(video.muted) {
btnCustomMuted.textContent = "Mute";
}
else {
btnCustomMuted.textContent = "Unmute";
}
video.muted = !video.muted;
})
}
</script>
Here is result:
Hope this can help you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @YIVAN, Regarding the issue of the mobile version being displayed incorrectly. Please follow these instructions:
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Inside head tags. You need create style tags. After insert my code inside it
.custom-btn-muted {
position: absolute;
bottom: 15px;
right: 20px;
color: white;
text-transform: uppercase;
cursor: pointer;
}
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @YIVAN,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file base.css, theme.css, styles.css, custom.css or theme.scss.liquid
Step 3: Insert the below code at the bottom of the file -> Save
.custom-btn-muted {
position: absolute;
bottom: 15px;
right: 20px;
color: white;
text-transform: uppercase;
cursor: pointer;
}
Step 4: Find theme.liquid. Before close body tags. Pls insert this code:
<script>
let video = document.querySelector("#video");
if(video) {
video.parentNode.insertAdjacentHTML('beforeend', '<div class="custom-btn-muted">Unmuted</div>');
video.parentNode.style.position = "relative"
let btnCustomMuted = document.querySelector(".custom-btn-muted");
btnCustomMuted.addEventListener("click", () => {
if(video.muted) {
btnCustomMuted.textContent = "Muted";
}
else {
btnCustomMuted.textContent = "Unmuted";
}
video.muted = !video.muted;
})
}
</script>
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Thank you very much, I have a couple questions. Can the text be Unmute and Mute rather than unmuted and muted? Also do you know how to do the mobile version as well?
This is an accepted solution.
Hi @YIVAN, Pls replace this code at file theme.liquid to new code:
<script>
let video = document.querySelector("#video");
if(video) {
video.parentNode.insertAdjacentHTML('beforeend', '<div class="custom-btn-muted">Unmute</div>');
video.parentNode.style.position = "relative"
let btnCustomMuted = document.querySelector(".custom-btn-muted");
btnCustomMuted.addEventListener("click", () => {
if(video.muted) {
btnCustomMuted.textContent = "Mute";
}
else {
btnCustomMuted.textContent = "Unmute";
}
video.muted = !video.muted;
})
}
</script>
Here is result:
Hope this can help you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @YIVAN, Regarding the issue of the mobile version being displayed incorrectly. Please follow these instructions:
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Inside head tags. You need create style tags. After insert my code inside it
.custom-btn-muted {
position: absolute;
bottom: 15px;
right: 20px;
color: white;
text-transform: uppercase;
cursor: pointer;
}
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025