Need small HTML help | IFTTT workaround

supermex

Elite Member
Joined
Nov 19, 2016
Messages
1,825
Reaction score
658
I am using IFTTT, so every time I upload a video on YouTube IFTTT makes a new WordPress post embedding the video.
That works fine, but the embedded video size is to small on the post.
So this is the code that IFTTT generates:

Code:
<div style="width: 480px; height: 270px; overflow: hidden; position: relative;">
<iframe frameborder="0" scrolling="no" seamless="seamless" webkitallowfullscreen="webkitAllowFullScreen" mozallowfullscreen="mozallowfullscreen"
allowfullscreen="allowfullscreen" id="okplayer" width="480" height="270"
src="http://youtube.com/embedcode" style="position: absolute; top: 0px; left: 0px; width:
480px; height: 270px;"></iframe></div>

I can’t modify this code on IFTTT, but I can add additional code "around it" (before/after). So is it possible to add some code to make the video width and height bigger?
Would be cool if someone could help me there.
 
Hi supermex,

add this to your CSS file:
Code:
div, iframe { width: 960px !important; height: 540px !important; }

make sure, you grab the div by its parent element like .parent-class div {}
 
Back
Top