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
-
Product on saleResponsive Club WordPress Theme – AyaClubProOriginal price was: $29.99.$25.00Current price is: $25.00.
-
Responsive Psychology WordPress Theme – AyaPsychologyPro$24.99
-
Responsive Books WordPress Theme – AyaBooksPro$24.99
-
Product on saleResponsive Handmade WordPress Theme – AyaHandmadeProOriginal price was: $29.99.$25.00Current price is: $25.00.
-
Product on saleResponsive Vegan WordPress Theme – VeganProOriginal price was: $29.99.$25.00Current price is: $25.00.
-
Responsive Medicine WordPress Theme – AyaMedicinePro$32.99
-
Product on saleResponsive Hair Salon WordPress Theme – AyaHairSalonProOriginal price was: $31.99.$25.99Current price is: $25.99.
-
Responsive Spiritual WordPress Theme – AyaSpiritPro$24.99
-
Responsive Traveling WordPress Theme – TourPro$24.99
-
Responsive Portfolio WordPress Theme – AyaPortfolioPro$24.99
-
Product on saleResponsive Landshafting WordPress Theme – LandshaftingProOriginal price was: $29.99.$25.00Current price is: $25.00.
-
Responsive Photography WordPress Theme – AyaPhotographyPro$24.99
-
Responsive Freelance WordPress Theme – AyaFreelancePro$24.99
-
Cover Book Mockup Design$4.00
Leave a Reply