[Resolved] Deactivate automatic Youtube imbedding

Home Forums Support [Resolved] Deactivate automatic Youtube imbedding

Home Forums Support Deactivate automatic Youtube imbedding

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #175907
    hari

    Hi Tom,

    maybe this is a dumb question, but I cant find a solution as everyone seems to *want* that Links to Youtube Videos are automatically framed and shown.

    Unfortunately, I want the opposite. I want, that Links stay just Links, as long as I dont decide explicitly something else.

    My basic understanding is, that this automatic embedding is a funktion of the wordpress editor, but I am not sure, if and if yes how, the theme might be involved too.

    Simple question: Is there an easy way to deactivate all automatic embedding -either in WordPress or in Generate Press – so that Links stay Links until explcitely stated otherwise?

    If there is somewhere some type of “basic checkmark” in wordpress, that all others know, just myself not, I already apologize for the dumb question. πŸ˜‰

    Thanks, Hari

    • This topic was modified 8 years, 2 months ago by hari.
    • This topic was modified 8 years, 2 months ago by hari.
    #175941
    Tom
    Lead Developer
    Lead Developer

    Hi Hari,

    You can try something like this:

    remove_filter( 'the_content', array( $GLOBALS['wp_embed'], 'autoembed' ), 8 );

    Or a plugin like this: https://wordpress.org/plugins/disable-embeds/

    #175945
    hari

    Ahhh a plugin!

    Will try that, thanks Tom!

    #175946
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

    #175949
    hari

    Hmm, plugin doenst work. Although installed, youtube links are still automatically embedded.

    And CSS above does not work either.

    I still copy the URL of a youtube-video into the editor and it shows the video embedded instead of the link.

    Maybe the theme has an influence here?

    #175951
    hari

    To add, i tried above CSS via the “Simple Customs CSS” plugin and not directly in the functions.php

    #175952
    Tom
    Lead Developer
    Lead Developer
    #176063
    hari

    Thanks Tom, it worked via Code Snippets!

    Beside, I still dont understand and dont accept why WordPress removed! the option to deactivate this function. In some countries even legal problems for wordpress admins result from this, as a link is just a link, but an embedded video is legally seen, as if you would publish it yourself – meaning possible copyright issues are yours, as if you would have illegally copied the content.

    I personally dont like the whole direction WordPress is going. Lots and lots of more function, but less and less influence by the user -> bloatware.

    Lucky that you provide us with such a fine theme, that at least in its own area allows a lot of tweaking with options.

    Thanks again!
    Hari

    • This reply was modified 8 years, 2 months ago by hari.
    • This reply was modified 8 years, 2 months ago by hari.
    #176125
    Tom
    Lead Developer
    Lead Developer

    Most of their options come after tons of discussion which you can be apart of in their core Slack channel πŸ™‚

    Luckily almost everything they do can be reversed with some simple code like the above.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.