Posted February 11, 20214 yr I have a strange issue with a database field that contains a YouTube video ID. I am displaying the field like this: {$record->customFieldDisplayByKey('video','display')|raw} The resulting HTML code starts off like this: <div class="ipsEmbeddedVideo" contenteditable="false" style="width:640px;max-width:640px;height:390px;"><div> Notice the width is hard-coded into the element at 640px. I am not sure where this is coming from. It is not coming from our max video width setting from the forum. I even downloaded the entire community site and did a search through the files for this code, and could not find it. It is possible I could have stupidly modified a template file to force the size like this. The default video embeds on the forum work fine. Any ideas? Where is this code originating from?
February 11, 20214 yr 8 minutes ago, Interferon said: It is possible I could have stupidly modified a template file to force the size like this Probably cms -> global -> records -> youtube But the custom field will pick up whatever settings you've applied to it - so edit the field and see if you have added the height/width parameters and modify them to suit if you have. And if you haven't, then try adding them and setting them to a value of your choice.
February 12, 20214 yr Author Thank you. I got it working perfectly with these settings: width = 100% height = auto