• Resolved agencialance1236

    (@agencialance1236)


    I’m connecting a 16:9 youtube video, but on my page with presto player, this video appears in 4:5 size. How do I configure it to appear in 16:9 size?

Viewing 1 replies (of 1 total)
  • Hello there,

    You can try setting the aspect ratio for your video using the following code snippet.

    add_action(‘wp_footer’, function () { ?>
    <script>
    jQuery(function() {
    if (!wp || !wp.hooks) return;
    wp.hooks.addFilter(‘presto.playerSettings’, ‘pp-set-aspect-ratio’, function(settings) {
    settings.ratio = ’16:9′;
    return settings;
    });
    });
    </script>
    <?php });`

    You need to add this function to the child theme’s functions.php. As of now, the Aspect ratio is set to 16:9, you can also set it according to your needs. Also, this applies to all the videos on your site.`

Viewing 1 replies (of 1 total)
  • The topic ‘Problem with aspect ratio’ is closed to new replies.