9:16 Vertical Aspect Ratio PrestoPlayer
-
Hello I’m trying to get vertical videos to work on PrestoPlayer but no solution seems to be working.
I’ve read the past help requests and saw the php code suggested to add to functions.php to solve the issue.
But for me the code doesn’t seem to be doing anything.
add_action(‘wp_footer’, function () { ?> <script> jQuery(function() { if (!wp || !wp.hooks) return; wp.hooks.addFilter(‘presto.playerSettings’, ‘pp-set-aspect-ratio’, function(settings) { if (settings.id === 497 ) { // this is the video id of that first video settings.ratio = ‘9:16’; } return settings; }); }); </script> <?php });
I’ve also tried the other code:
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 });
I’m not sure what im doing wrong and would appreciate some assistance.
I’ve changed the settings.id to the correct media.
I’ve disabled other plugins.
and still getting no results, what am i missing?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.