How do i change/filter the oembed max width settings (as set by ) admin -> media -> settings -> “Maximum embed size” before the oembed code gets executed. For example on the index pages i want it to be 540, but ona single page, i’d like to be 880?
Leave a Reply
You must be logged in to post a comment.
Using the following in your functions.php file should do the trick:
Add as many WordPress conditional statements as you like to match the desired aspect ratio for each template.