Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Hur man enkelt embedar videoklipp i blogginlägg i WordPress

Vill du embedda videoklipp i dina blogginlägg i WordPress? Videoklipp ger liv åt din website och är ett bra sätt att öka engagemanget hos användarna.

WordPress gör det superenkelt att embeda videoklipp från webbplatser som gillar webbhotell som YouTube, Vimeo, Facebook, Twitter och många andra.

I den här guiden för nybörjare visar vi hur du enkelt embedar videoklipp i WordPress blogginlägg, pages och widgets i sidebar.

How to easily embed videos in WordPress blog posts (4 ways)

Varför embedda videoklipp i dina blogginlägg i WordPress?

Att lägga till videoklipp på din WordPress blogg är ett bra sätt att genomföra dina besökares uppmärksamhet och öka engagemang och konvertering.

Videoklipp bidrar till att öka den tid som dina användare tillbringar på din WordPress website, och vissa besökare kanske till och med föredrar att titta på ett videoklipp framför att läsa skriven text.

Här på WPBeginner embedar vi videor i våra mest populära WordPress tutorials.

Ska du ladda upp videoklipp direkt till WordPress?

Jo, det kan du, men vi rekommenderar inte att du gör det.

De flesta små bloggar använder delade WordPress webbhotell konton, och videoklipp kan ta upp mycket resurser på servern. Om ditt videoklipp får mycket trafik är det mer troligt att din website kraschar.

För det andra går du miste om trafik från användare av YouTube och andra webbplatser för webbhotell.

YouTube är inte ej endast det största webbhotellet för videoklipp, det är även världens näst mest populära search engine och det näst mest populära sociala nätverket efter Facebook.

Om du inte vill uppladdare dina videoklipp till YouTube, kan du använda andra plattformar som Vimeo, Jetpack Video, Wistia, och mer.

För mer detaljer, se vår post om varför du aldrig ska uppladare ett videoklipp till ditt WordPress mediabibliotek.

Med detta sagt, låt oss visa dig hur du kan embedda videoklipp i WordPress blogginlägg, steg för steg. Använd bara snabblänkarna under för att hoppa direkt till den metod du vill använda:

Video Tutorial

Subscribe to WPBeginner

Om du föredrar skriftliga instruktioner är det bara att fortsätta läsa.

Metod 1: Embedda videoklipp i WordPress blogginlägg och sidor med Block Editor

WordPress har en utvald funktion som kallas auto-embeds, som allow your website att automatiskt hämta embed-koden från populära webbhotell för videoklipp som YouTube, Vimeo etc.

Allt du behöver göra är att klistra in URL:en till videoklippet i WordPress Editor.

Du kan till exempel kopiera URL:en till YouTube för ett videoklipp som du vill embeda.

Därefter redigerar du WordPress inlägget eller sidan där du vill add to videoklippet och klistrar in URL:en i content area.

Paste video embed code in block editor

Så snart du klistrar in videons URL kommer WordPress att hämta embed-koden och visa YouTube-videon i content editor.

You can now save your post by clicking the ’Update’ or ’Publicera’ button to see the embed video in your live post.

Var inte det lätt?

När du har lagt till videon kan du customize dess inställningar genom att clicka på videoklippet i Editorn och göra ändringar i toolbaren i popup-fönstret.

You can adjust the video width, change the alignment, and more. Du kan också lägga till en caption och bevara videoklippets bildförhållande på mobila enheter.

Edit video display options in block editor

WordPress kan bara göra auto-embeds för vitlistade tjänster för videoklipp. För andra webbplatser måste du fortfarande hämta embed-koden och sedan klistra in den i dina blogginlägg.

Här är en lista över vitlistade tjänster för videoklipp för automatisk embed i WordPress:

  • Amazonas
  • Animoto
  • Cloudup
  • CollegeHumor
  • Crowdsignal
  • Dailymotion
  • Facebook
  • Flickr
  • Hulu
  • Imgur
  • Instagram
  • Utgåva
  • Kickstarter
  • Meetup.com
  • Mixcloud
  • Reddit
  • ReverbNation
  • Screencast
  • Scribd
  • Slideshare
  • SmugMug
  • Några kort
  • SoundCloud
  • Högtalardäck
  • Spotify
  • TED
  • Tumblr
  • Twitter
  • VideoPress
  • Vimeo
  • WordPress.tv
  • YouTube

Om du vill add to ett videoklipp från en website utanför denna lista, behöver du den fullständiga HTML embed-koden för videoklippet.

Kopiera bara HTML-koden som tillhandahålls av videoklippets website och klistra in den i ”HTML”-blocket i Editor.

Add video embed HTML code

Mer information finns i vår guide för nybörjare om hur du redigerar HTML i WordPress code editor.

Metod 2: Embedda videoklipp i WordPress med hjälp av den gamla klassiska Editorn

Om du fortfarande använder den gamla klassiska WordPress Editor kan du bädda in videoklippen på samma sätt.

Kopiera bara URL:en från ett webbhotell för videoklipp som YouTube och klistra in den i Editorn. Om du använder visual editor kommer du att se en preview av videoklippet.

Embed video in classic editor

Du kommer dock ej att kunna använda breddjusteringen och andra alternativ som du kan använda i WordPress Gutenberg block editor.

Se till att du klickar på knappen ”Update” eller ”Publicera” för att dina ändringar ska börja gälla.

Metod 3: Hur man bäddar in videoklipp i WordPress Sidebar Widgets

Likes a WordPress post or page, you can also embed videos in WordPress sidebar widgets.

Gå bara till Appearance ” Widgets i din WordPress admin area och klicka sedan på ’+’ add new block icon.

Därefter söker du efter ”Video” i sökfältet.

Sedan kan du klicka på blocket för den typ av videoklipp du vill lägga till. Till exempel YouTube, Vimeo, TED och mer.

Add new video block to widget

Därefter måste du klistra in din videoklipps URL i boxen, klicka på knappen ”Embed” och den kommer automatiskt att läggas till i widgetens area.

Sedan är allt du behöver göra att klicka på knappen ”Update”, och videoklippet widget kommer nu att vara live på din WordPress site.

Enter embed URL and click update

Nu kan du besöka din website för att se videoklippet Live. Storleken på videoklippet kommer automatiskt att skalas baserat på storleken på ditt widgetar area.

Widget video embed example

Mer information finns i vår guide om hur du lägger till och använder widgetar i WordPress.

Metod 4: Använda tillägg för videoinbäddning i WordPress för att bädda in videoklipp

Som standard behöver du inte använda ett plugin för att embedda videoklipp i WordPress. Du kanske dock vill använda tillägg för att förbättra upplevelsen av videovisningen på din website.

Följer några tillägg till WordPress som du kanske vill prova.

1. Smash Balloon YouTube Feed Pro

Smash Balloon YouTube Feeds Pro

Smash Balloon YouTube Feed Pro är det bästa tillägget för YouTube video gallery för WordPress, betrodd av över 40 000+ webbplatsägare.

It allows you to automatically embed all of your YouTube channel videos in a customizable gallery format. Det importerar automatiskt nya videoklipp, kombinerar feeds, kan lägga till live streaming-funktionalitet, embed en YouTube playlist och mer.

Dessutom inkluderar det visningar, likes, delningar, kommentarer och reaktioner, vilket kan bidra till att öka ditt sociala bevis.

YouTube channel feed example

Det finns en gratis version av YouTube feed plugin available som du kan använda för att helt enkelt add to din YouTube-kanal feed till WordPress.

För mer information, se vår guide om hur du visar de senaste videoklippen från YouTube-kanalen i WordPress.

Du kan också använda Smash Balloon YouTube Feed-plugin med Social Wall-plugin som kombinerar allt ditt sociala medieinnehåll från Facebook, Instagram, Twitter och YouTube på en enda WordPress-sida.

2. Smash Balloon TikTok Feeds Pro

Smash Balloon TikTok Feed Pro

TikTok Feeds Pro, också av Smash Balloon, är ett kraftfullt plugin som allow you att enkelt embed TikTok videos var som helst på din WordPress site.

När du postar på din TikTok-kanal matas den automatiskt till din website och visas i ett beautiful video gallery feed. You can choose from multiple feed layouts, including grid, carousel, list, and masonry.

Smash Balloon TikTok feed example

Drag and drop feed editor ger dig också fullständig control över utseendet på ditt TikTok feed. You can set the number of videos to show and customize colors, styling, spacing, and more.

Dessutom kommer det med användbara moderationsverktyg för att filtrera dina videoklipp baserat på ett ord eller en hashtag. Med hjälp av den här funktionen kan du skapa curate video feeds för olika delar av din website för att rikta in dig på specifikt content.

Det finns också en gratis version av Feeds for TikTok plugin som du kan använda för att add to en enkel TikTok feed i WordPress.

Se vår guide om hur du embedar TikTok videoklipp i WordPress för mer detaljer.

The Envira Gallery YouTube plugin

Envira Gallery är det bästa tillägget för gallerier i WordPress på marknaden. Du kan använda det för att enkelt skapa fotogallerier i WordPress. Det kommer också med ett Videos Addon för att visa beautiful och responsiva videoklipp gallerier.

Du kan skapa gallerier med videoklipp från YouTube, Vimeo, Twitch, DailyMotion med mera. Du kan även displayed YouTube playlists från your personal account och du har möjlighet att starta YouTube videoklipp vid en viss timestamp.

Envira är superenkelt att använda. Simply enter your YouTube video URL and the smart system will automatically grab the video thumbnails for you.

Det finns en gratis version av Envira Gallery available. Du behöver dock premium pluginet för att få tillgång till funktionen för videoklipp gallerier.

4. Fält för YouTube-prenumeration

YouTube Subscribe Bar

YouTube Subscribe Bar visar en knapp för YouTube-prenumeration under dina YouTube videoklipp som är embedade i WordPress. Den hämtar också antalet YouTube-prenumeranter för att add to sociala bevis och uppmuntra fler användare att prenumerera på din kanal.

Vi skapade det först för att främja WPBeginners YouTube-kanal på denna website. Många av våra användare bad oss att dela med oss av hur vi gjorde detta, så vi bestämde oss för att släppa det som ett gratis plugin.

5. Lazy loaded för videoklipp

Lazy Load for Videos

Lazy Loaded for Videos löser problemet med att ladda inbäddade skript för videoklipp från externa webbplatser, vilket påverkar sidans laddningshastighet och prestanda.

Istället hämtar den bara embed-koden när användaren klickar på play-knappen.

Förresten, du behöver inte detta plugin om du använder Smash Balloon YouTube Feed plugin eftersom det har built-in caching och fördröjd hämning för videospelaren.

Vi hoppas att den här artikeln hjälpte dig att lära dig hur du enkelt embedar videoklipp i blogginlägg i WordPress. Du kanske också vill se vår kompletta guide till sökmotorsoptimering (SEO) i WordPress och våra expertval av de bästa telefonitjänsterna för småföretag.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Avslöjande: Vårt innehåll stöds av våra läsare. Det innebär att om du klickar på några av våra länkar, kan vi tjäna en provision. Se hur WPBeginner finansieras, varför det är viktigt, och hur du kan stödja oss. Här är vår editoriala process.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Den ultimata WordPress-verktygslådan

Få GRATIS tillgång till vår verktygslåda - en samling WordPress-relaterade produkter och resurser som varje professionell användare bör ha!

Reader Interactions

123 kommentarerLämna ett svar

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Jiří Vaněk says

    Thanks for the block editor tutorial. I’ve been using Elementor until now and here’s a widget where you just put the URL of the video and it worked. But it’s good to know how it works in the block editor in case the website owner doesn’t want Elementor for some reason.

  3. Pierre Gazzola says

    As my dementia stay the same I though I try again wordpress been away siince version 3.

    However was smart enough to keep your page in my wp tab on chrome you help me so much all the time and remembering so much thank you.
    From a old 70 25 at hearth :))

    • WPBeginner Support says

      Glad we can be helpful and we hope our guides continue to help you now and in the future!

      Administratör

  4. sandeep says

    i have added YouTube video links in my WordPress blog post. now I want to remove that video link
    so my question is after removing that links does it create any problem in that post indexing in google search console. because that video is appearing in video indexing page of google search console

    • WPBeginner Support says

      Unless we hear otherwise, removing a video link should not cause an issue with your post indexing.

      Administratör

  5. Krystal says

    When I upload a video using the blocks wordpress tells me I must upgrade my account for $96/year. I’ve been using wordpress since 2012. What gives?

  6. Barry C Laminack says

    Hi, In case others may have the same problem I did with embedding a video from Rumble, after many trying many different things, I figured out how to do it by accident lol.

    If it is your own video, use the Embed Code but only the link within the src= portion.

    If it is not your video, using the ”EMBED” button of the video, copy and use the ”Embed IFRAME URL” link provided in the Embed pop dialog.

  7. Dexter Rodrigues says

    Super stuff guys. I was struggling for 2 days with LearnDash LMS on WP and a premium European hosting provider. I used the method of Custom HTML embed and it worked just fine. It’s 3.00am in the morning where I am at and am smiling because of you :). Thanks a lot, this content is truly for a beginner like me with an erratic learning curve.

  8. Imtiaz says

    I tried to upload videos from youtube, but it shows all related videos. I tried to put some restrictions also with functions like control=0, autoplay=1, ?rel=0, but none of these worked. I tried to upload videos from vimeo also, but there also related videos displayed.
    Than I tired to upload videos directly from my pc, but that made my site slow.
    Any suggestions how to use embeded vdeos of html from my pc.

    • WPBeginner Support says

      We do not have a recommended method for embedding a video from your home computer as a server at the moment.

      Administratör

  9. monika says

    hi can i add food youtube videos on my wordpress food theme?……..i am serching for a food theme on wordpress that supports food videos.
    thanks

    • WPBeginner Support says

      You can add videos to any WordPress theme, where you add it would determine how difficult it would be to achieve.

      Administratör

  10. tuna says

    Thanks for the nice information…
    I have a problem with url embed function in wordpress. When I add a url to embed a different post from my website ,everhting seems fine in preview mode. I mean I am seeing thumbnail and a excerpt of the post which is exactly what I want. But, when ı update the post there is only a simple link instead what is shown in preview mode. I need your help if possible.
    Best Regards

  11. Samuel says

    I would like to have a website that is purely a Video Gallery but more like YouTube.
    Do you think Plugins can do that?
    Can you recommend some Plugins for me?
    Thank you,

  12. Gaurav J says

    Hi. i am using embeds block to embed my YouTube video into the post. In the edit post window, I can see the video is getting embedded/I can see the preview of the video. But, once i publish the post or preview it, I could only see the link of the video and not the preview.
    I am not using any plugins for embedding the videos.
    Could you please help?

  13. Liz says

    Hello,
    i used to embed video on wordpress by simply past the link.
    Now, Google search console detect that there are some problems in the two pages I have with video embed.
    I’m talking about mobile usability.
    Is there a way to fix this problem or a plugin that will fix it ?

    • WPBeginner Support says

      It would depend on how and where you added the videos from, using the YouTube embed as an example should not cause an issue unless you’re using an iframe embed that specifies width.

      Administratör

  14. Luz Manalo-Cruz says

    I am unable to embed a YouTube video using the embed block editor (I tried both the embed block and the Youtube block). I’ve already tried pasting from the youtube studio link, from the URL in the address bar, and from the ”share” button. Is there something I’m not doing right?

    • WPBeginner Support says

      You may want to try disabling your plugins to ensure this isn’t a possible conflict between one of your plugins and the embed.

      Administratör

  15. JOy Halverson says

    I have a youtube video on my WordPress ecommerce site – when the video ends I simply want it to end so that my customers aren’t curious to go see other videos. No ”ads” for other youtube videos unrelated to my site- I seem to recall that there is some code you can put at the end of the video URL that will accomplish this. thanks

  16. HJK says

    Hi, I’ve used the embed code in the HTML editor then when I switch back to visual it appears, however when I try to preview the post the video does not show up at all.

    • WPBeginner Support says

      If it is only when trying to preview the post, you may want to try saving your draft beforehand to ensure that it is not due to the preview not being saved properly

      Administratör

  17. Arpit says

    Really useful information. Can you please help me to know, if i add video on WordPress post will effect on site speed or particular post speed.

  18. Jason says

    ”ll you need to do is paste the video URL into the WordPress editor.”

    What a ie. Even putting the youtube link into the embed block doesn’t work. I wish WordPress would stop giving incorrect directions. Nothing seems to work when it comes to putting a simple short youtube link (of my own 2 minute video into wordpress. WP? …. IDK about this.

    • WPBeginner Support says

      You may have a plugin or similar that could be preventing the embed from being added correctly, have you tried using the video block that was added with the Gutenberg/block editor?

      Administratör

  19. Jeffrey Christian says

    I’m trying to embed a link from Vimeo but come up with the following error:

    Sorry, this content could not be embedded.

    There is no issue with the video, so not sure why there’s an error.

    Any suggestions would be appreciated!

    • WPBeginner Support says

      If this method didn’t work, have you tried the video block to embed using that? If the error is in a Vimeo embed then the video owner may not allow embedding of the video.

      Administratör

  20. Suzanne Dunaway says

    I cannot get this to work at ALL and I have a blog with 10,000 followers so far. Why won’t this work on my WordPress editing page??????

    • WPBeginner Support says

      If you’re using the new block editor then there is an embed or a video block that you can use if that is the issue.

      Administratör

  21. Gordana says

    I tried to embed url from yotube, it does work but copied video seems too large. I wanted smaller feature and I couldn’t get it smaller in no possible way. I tried same from Vimeo and was satisfied with the size. Do you have any similar experiences?

  22. Ashley says

    I am pasting in the URL for our YouTube video and it does not auto embed. I did this exact process twice yesterday with no problems. Tried the embed code, logged out and logged back in but it still won’t auto embed.

    Any ideas as to why this has suddenly stopped working?

  23. David says

    Well what do you do when you you insert the URL, the image auto generates and then clips the rest of the paragraph instead of adjusting to fit?

  24. Tyoaan Calistus says

    When I embed a YouTube code and add on my post, the button on click on and watch the video is usually not in the middle of the post.. How do I fix that pls?

  25. Sejal says

    Hi..I copied the Youtube URL and it shows properly on the desktop version but doesnt show anything in the mobile version? Am I doing something wrong?

  26. Suzanne Eutsler says

    I am embedding facebook live videos into our ministry website and am trying to figure out spacing issues. If you look at the link below, you’ll notice that underneath the video some of the text is cut off and when you look at it on an iphone you’ll notice there’s a TON of white space after each video.

    HOW do I set it to be automatic that it just fits? Is there a way? I’d like it to show up correctly regardless of the pc or iphone or android etc.

    HELP!!!! Please

  27. Tom Minkler says

    What if a video is shared to Facebook from Instagram, THEN i try to put it in WordPress post? For awhile, pasting the FB link into the visual editor was working fine, but now it just shows the link.

    I don’t think those past videos that work were from Instagram, i went back and looked and one was shared from one Facebook page to another but the original doesn’t say it is from Instagram. Does it matter?
    Thanks for your help.

  28. Alexander says

    thank you very much wpbeginner for this awsome post as usual it was so usefull
    and i have another question my worpress site does not display properly on smartphones and android device what could be the problem ?

  29. Riyaz Khan says

    Hi,

    I want to develop a site where i am allowing users to upload the videos in their profile dynamically and same can be seen by other member, kind of facebook.
    Is there any plugins for the same?

  30. Kim says

    Hi WP Beginner!

    First off my wordpress is a localhost. I’ve uploaded the video by adding media. (It shows up in my media library) However, when I put it in a post it starts by looking like it will play then goes black as says:

    Media error: Format(s) not supported or source(s) not found
    Then it gives a download link.

    Is there anyway to just embed the video without giving a download link?
    The video is an mp4.

    Any help would be great! Thanks!

  31. Zeeshan Zafar says

    I have added Youtube Link in my site post but unfortunately it is not showing. I have tried many things to make it visible but no success. On load iframe load but there is nothing in the body tag of iframe.

    Please Help….

      • JEG says

        Sorry this is not correct. Instead I suggest you delete your post and create a new one. I was having a similar problem and that is how I fixed it.

  32. Jennifer says

    I was able to embed my video from facebook live, and everything appears to be working perfectly EXCEPT there is no audio. What can I do?

  33. Milliana says

    So how then do we use the embed code for ARCHIVE.ORG

    WP will not let me use the Internet Archive iframe any more since it has updated.

    This is a problem!

    Do you have a work-around?

  34. Mac says

    Hello, I’m trying to include a video on my WordPress post. I copy the URL (URL only, not the embed code) from my Vimeo link and paste it onto the Post Editor on its own line. It is not a hyperlink. After saving & updating the post, I go to look at the post and all I see is the text of the Vimeo url (no video). What am I doing wrong? FYI this is my own video on Vimeo; there are no privacy settings and it can be shared. Thanks.

  35. Vivek Darji says

    hello wpbegginer
    how to increase Traffic on Photography site? without any content because my friend start a photography blog he was update only photos in blog how to improve that blog?

  36. Guust says

    Just a note to anybody thinking of just adding videos to explain things rather than explaining with written words.
    Videos with spoken explanations only are not accessible to hearing impaired people and might also be difficult for visitors to your site who do not speak the same language as the language used in the video.
    And videos cannot be read by screen readers for the bling.
    So make sure to add subtitles and also provide screen reader accessible content if you want or need your site to be accessible.

    Cheers

  37. Michelle says

    Hello,

    I’ve just embed a youtube video on my wordpress site and it plays from that webpage on a desktop/leptop. However, when I access the webpage from my mobile device, when I play the video it opens it up in the Youtube app instead of staying on my website. I don’t want viewers to leave the webpage I’ve embed the video on while on mobile devices. Is there anyway to ensure viewers will not leave my site while on a mobile device and watching my video?

  38. Hassin says

    is it possible that I could upload a video on my homepage. this is my wordpress blog
    I want to change the video that is on the bottom of my page but I can’t change it, please help me. It is entered through Videopress

  39. Paul Holmes says

    Hi Kathy,
    I’m having problems with Vimeo embed codes. I have copied and pasted the Vimeo embed code onto my WEBSITE on the WORD PRESS Page but, when i click update and view changes all I see is the VIMEO Embed Code and not the VIDEO.

    It isn’t showing the Video on my WORD PRESS Page just the EMBED CODE?

    Look forward to your reply THAK YOU
    Regards
    Paul

  40. Kathy says

    I am having great difficulty getting a video to post on my WordPress blog. I’ve loaded it up to my youtube channel and then copy the URL from there. I paste into my NewPost, taking care to not have anything else on that same line. The video pops up in the edit box, but will not show on my blog when I come in from the outside, like any of you would do.

    I’ve reviewed bunches of training sites that all say I am doing this correctly, and yet it won’t show. I called GoDaddy, since they are my blog host, but to no avail. They couldn’t help.

    I even tried using the embed code and got the same results.

    Does anyone have any suggestions?

  41. Jeanne says

    Thank you for this video. Seems simple enough, but the video I want to embed in my Word Press template is from a news station’s website. It’s not on the white list and although you said we would have to use the embed code instead, you did not provide a link to how to use the embed code.

  42. Cory says

    This was helpful, but I’m an idiot and need every single step spelled out for me…haha! What may be helpful for others looking for the solution, is more details on the link that you actually use on the wordpress page. It’s shown in the video but isn’t specifically explained. Don’t use the links that youtube gives you in the ”share” option. Instead, copy and paste the actual url that is in your address bar of your browser.

Lämna ett svar

Tack för att du väljer att lämna en kommentar. Tänk på att alla kommentarer modereras enligt våra policy för kommentarer, och din e-postadress kommer INTE att publiceras. Vänligen använd INTE nyckelord i namnfältet. Låt oss ha en personlig och meningsfull konversation.