All of our Premium WordPress themes include’Display Vimeo Video’ widget which allows you to embed Vimeo videos in your website.
When you play the embed video the sound is enabled by default. In some cases you may want to disable the sound by default. Here are instructions how it can be done:
1. Navigate to Admin Panel -> Left Menu -> Appearance -> Editor
2. Open the following file:
theme/inc/widgets/social-sites-widgets.php or inc/widgets/php (for TourPro, LandShaftingPro, VeganPro, or AyaSpiritPro)
3. Find and Replace the following code:
echo ‘<i’ . ‘frame src=”https://player.vimeo.com/video/’ . $videoid . ‘” width=”‘ . $maxwidth
. ‘” height=”‘ . $maxheight
. ‘” frameborder=”0″ class=”vimeo-iframe” webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>’;
with:
?>
<script src=”https://f.vimeocdn.com/js/froogaloop2.min.js”></script>
<iframe id=”vimeo_player” src=”//player.vimeo.com/video/<?php echo $videoid; ?>?api=1&player_id=vimeo_player&autoplay=1&loop=1&color=ffffff” width=”<?php echo $maxwidth; ?>” height=”<?php echo $maxheight; ?>” frameborder=”0″ webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
<script>
jQuery(function() {
var iframe = jQuery(‘#vimeo_player’)[0],
player = $f(iframe),
status = jQuery(‘.status’);
player.addEvent(‘ready’, function() {
player.api(‘setVolume’, 0);
});
});
</script>
<?php
4. Save changes
Best-selling Products:
-
All Premium WordPress Themes$51.00
-
AyaClubPro – Responsive Club WordPress Theme$29.99
-
AyaPsychologyPro – Responsive Psychology WordPress Theme$24.99
-
AyaBooksPro – Responsive Books WordPress Theme$24.99
-
AyaHandmadePro – Responsive Handmade WordPress Theme$29.99
-
VeganPro – Responsive Vegan WordPress Theme$29.99
-
AyaMedicinePro – Responsive Medicine WordPress Theme$32.99
-
AyaHairSalonPro – Responsive Hair Salon WordPress Theme$31.99
-
AyaSpiritPro – Responsive Spiritual WordPress Theme$24.99
-
TourPro – Responsive Traveling WordPress Theme$24.99
-
AyaPortfolioPro – Responsive Portfolio WordPress Theme$24.99
-
LandshaftingPro – Responsive Landshafting WordPress Theme$29.99
-
AyaPhotographyPro – Responsive Photography WordPress Theme$24.99
-
AyaFreelancePro – Responsive Freelance WordPress Theme$24.99
-
Cover Book Mockup Design$4.00
Leave a Reply