Special Offer: Buy All 45 Premium WordPress Themes for Just $51. Learn more
No Comments

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:

Categories: Help

Leave a Reply

Your email address will not be published. Required fields are marked *

This will close in 15 seconds