
Tagged: unmute background video, unmute icon
-
AuthorPosts
-
August 27, 2025 at 8:15 pm #1488624
Hi
On the site below I have a background video in a color section at the bottom of the page.
I added an unmute button to the video, and it seems to be working.
I added the codes I found here: https://kriesi.at/support/topic/html-for-turning-on-audio/#post-1432783
and on this page: https://webers-testseite.de/mute-unmute/I didn’t understand where to place the first code where it says :
Activate Child-theme shortcodes replacement by:add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths){ $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; }
Do I add that to my functions.php or is it OK as it is?
I am also still seeing the mute icon on mobile, even though my css is:
@media only screen and (min-width: 768px) { .custom-mute { display: block; background-image: url('/wp-content/uploads/2025/08/icon-mute.png'); background-size: cover; width: 50px; height: 50px; position: absolute; bottom: 8%; right: 4%; z-index: 50; } .custom-mute:hover { opacity: 0.7; } .icon-sound-on { background-image: url('/wp-content/uploads/2025/08/icon-sound.png'); }}
can you help me with this?
thanks
NancyAugust 28, 2025 at 8:03 am #1488641Hey Munford,
Thank you for the inquiry.
You don’t need to add avia_load_shortcodes unless you’re overriding or creating new builder elements or shortcodes. To hide the mute button on mobile, make sure to add the following code above the css media query.
.custom-mute { display: none; }
Let us know the result.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.