Fit-Video action on other embeds

Support Area Forums Grassroots Fit-Video action on other embeds

Viewing 4 posts - 1 through 4 (of 4 total)
URL to the page in question: http://
  • Author
    Posts
  • #36190
    Leah Reis-Dennis
    Participant

    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)

    #36192
    Leah Reis-Dennis
    Participant

    Sorry! I figured out how to remove the action 🙂

    #36193
    Bill Robbins
    Moderator

    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

    #36194
    Bill Robbins
    Moderator

    You found a solution while I was still typing a reply 🙂

    Glad to hear it. If you need anything, just let me know.

    Bill

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Fit-Video action on other embeds’ is closed to new replies.