hmmm, easiest solution would be to use the lyte_match_postparse_template filter to change e.g.
style="width:1280px;max-width:100%
into
style="width:1432px;max-width:100%
hope this helps 🙂
frank
Hi Frank,
Thank you for the help. It was flattering you assumed that from this info I can do it but I lived up o the task.
It works.
For others to help here is my code to copy:
// YT LYTE: custom player size (replacing 1280px!)
add_filter( 'lyte_match_postparse_template', 'piq_custom_yt_playersize', 10, 2 );
function piq_custom_yt_playersize( $lytetemplate, $templateType ) {
$newtemplate = str_replace( 'style="width:1280px;max-width:100%', 'style="width:1432px;max-width:100%', $lytetemplate );
return $newtemplate;
}
All the best,
Champdor
I was about to ask this question and came across this post.
What file do we put that code in?
Also, is it possible to change the width to 100% and height and just use max-width to limit the max size of the player? I’d like the player to fill the width of the content area it’s in on my site, but not exceed 960px wide.
Sorry, would also like to remove the 5px margin. Can that just be added to the style area of the code snippet, margin: 0px?
Thanks in advance!
-
This reply was modified 4 years, 4 months ago by
onmrc.
What file do we put that code in?
The easiest & safest solution is using the code snippets plugin.
Also, is it possible to change the width to 100% and height and just use max-width to limit the max size of the player? I’d like the player to fill the width of the content area it’s in on my site, but not exceed 960px wide.
well, max-width is set to 100%, so if you choose the 1280px wide in the configuration, the max-width will ensure the player remains in the 960px wide content area?