Fit-Video action on other embeds
URL to the page in question:
http://
-
Hi Bill,
My question is in regards to the Fit-Video action in this theme. It affects all the oembeds which includes things like twitter cards. Is there a way to either rewrite this action in my child theme to only add the fit-videos wrapper div to YouTube and Vimeo link? Or just a way to remove this feature.
Thanks,
Sasha
(Developer for Leah Reis-Dennis)
Sorry! I figured out how to remove the action 🙂
Hi Sasha,
Great question. You can disable that. If you’re using a child theme, in the functions.php file there, create a function like this:
(See support site for code)
That should give you a function in the child theme that keep the one in the parent from loading. If it doesn’t do the trick, let me know.
Thanks,
Bill
You found a solution while I was still typing a reply 🙂
Glad to hear it. If you need anything, just let me know.
Bill
- The topic ‘Fit-Video action on other embeds’ is closed to new replies.