Yuav ua li cas rau Embed YouTube Video rau hauv koj WordPress Blog

Cov txheej txheem:

Yuav ua li cas rau Embed YouTube Video rau hauv koj WordPress Blog
Yuav ua li cas rau Embed YouTube Video rau hauv koj WordPress Blog
Anonim

Kev muab cov yeeb yaj kiab YouTube tso rau hauv koj qhov blog WordPress yog txoj hauv kev zoo kom koj cov neeg tuaj saib koom nrog thiab txaus siab. Txawm hais tias koj xav embed koj cov ntsiab lus video lossis lwm tus neeg, WordPress ua cov txheej txheem ncaj qha thiab tsis muaj teeb meem.

Kab lus no siv rau ob tus kheej-hosted (wordpress.org) thiab dawb-hosted (wordpress.com) blogs.

Yuav ua li cas rau Embed YouTube Video hauv WordPress

Koj tuaj yeem luam tawm thiab muab tso rau hauv video URL rau hauv WordPress editor. Tsis tas yuav muaj tus lej ntxiv.

  1. Los ntawm WordPress Dashboard, xaiv Posts > Ntxiv tshiab.

    Image
    Image
  2. Xaiv lub + icon ntxiv ib ntu tshiab, ces xaiv YouTube.

    Image
    Image
  3. Mus rau YouTube video koj xav embed, xaiv Share, ces xaiv Copy.

    Image
    Image
  4. Rov qab mus rau koj qhov kev tshaj tawm WordPress, muab tshuaj txhuam URL video, tom qab ntawd xaiv Embed.

    Image
    Image

    Koj tuaj yeem muab tso rau YouTube URL rau hauv cov ntsiab lus editor hauv ob qho tib si pom thiab ntawv nyeem.

  5. Xaiv Publish txhawm rau ua kom koj cov yeeb yaj kiab muaj nyob.

    Image
    Image

Yuav ua li cas rau Embed YouTube Video hauv Sidebar

Yog tias koj xav tso cov yeeb yaj kiab YouTube rau hauv koj qhov blog lub sidebar, siv cov video widget.

  1. Los ntawm WordPress Dashboard, xaiv Appearance > Widgets.

    Image
    Image
  2. Drag the Video widget rau qhov blog sidebar.

    Image
    Image
  3. Muab lub npe video, ces xaiv Add Video.

    Image
    Image
  4. Xaiv Ntxig los ntawm URL hauv kaum sab laug sab sauv.

    Image
    Image
  5. Nkag mus rau qhov video URL, tom qab ntawd xaiv Ntxiv rau Widget tom qab cov yees duab tshwm.

    Image
    Image
  6. Xaiv Save.

    Image
    Image

Yuav ua li cas rau Embed YouTube Video Nrog Iframe Element

YouTube muaj ntau yam ntawm cov neeg ua si tsis txwv los kho qhov kev ua si. Embedding yeeb yaj duab nrog iframes tso cai rau koj los kho qhov video player zoo li thiab ua haujlwm nrog cov kev xaiv xws li autoplay, nyiam hom lus, video dav thiab qhov siab, looping, playlist, thiab ntau dua.

  1. Los ntawm WordPress cov ntsiab lus editor, xaiv HTML.

    Image
    Image
  2. Mus rau YouTube video koj xav embed, xaiv Share, ces xaiv Embed.

    Image
    Image
  3. Xaiv Copy.

    Image
    Image
  4. Paste lub iframe code rau hauv HTML lub thawv hauv WordPress, tom qab ntawd xaiv Preview.

    Image
    Image
  5. Xaiv Update yog qhov video zoo.

    Image
    Image

    Kev sim nrog sib txawv Player Parameters hauv iframe code rau kev hloov kho tag nrho. Ntxiv txhua qhov parameter tom qab qhov chaw (src) URL.

Yuav ua li cas rau Embed YouTube yeeb yaj duab nrog WordPress Plugins

Siv lub plugin yog lwm txoj hauv kev txhim khu kev qha rau embedding YouTube yeeb yaj duab. Qee qhov plugins muab ntau yam ntxiv rau koj los hloov kho li cas cov yeeb yaj kiab tshwm ntawm nplooj ntawv.

  1. Los ntawm WordPress Dashboard, xaiv Plugins > Ntxiv Tshiab.

    Image
    Image
  2. Enter youtube embed rau hauv lub thawv tshawb nrhiav plugin, xaiv lub plugin, tom qab ntawd xaiv Install Now.

    Image
    Image
  3. Xaiv Activate tom qab lub plugin nruab.

    Image
    Image

Pom zoo: