Mukamapanga tsamba lanu mumitu yotchinga ya WordPress, mwina mwazindikira kuti kusaka kwakukulu patsamba lanu kuli ndi zosankha zochepa zamakongoletsedwe. Mwachitsanzo, mukadina ulalo watsamba mumayendedwe anu akulu kuti muwone tsamba patsamba lanu, ulalo watsamba lomwe limagwira sikusintha mtundu mkati mwamayendedwe akulu. Mwanjira ina, palibe chomwe chikuwonetsa kwa wogwiritsa ntchito patsamba lomwe ali pakali pano.

Zodziwika bwino za ogwiritsa ntchito zimati alendo obwera patsambali ayenera kukhala ndi zidziwitso za komwe ali patsamba lanu - zimawathandiza kuti asatayike.

Mu phunziro ili, ndikuwonetsani momwe mungasinthire makonda anu pamasamba anu mu WordPress block themes kuti muwonetse mtundu watsamba lomwe likugwira ntchito. Ndikhala ndikugwiritsa ntchito mutu wa Twenty Twenty Four pachiwonetserochi.

Gawo 1: Pitani ku Block Editor

Kuchokera pa WordPress Dashboard yanu, pitani ku Mawonekedwe> Mkonzi (muvi wofiyira pachithunzi pamwambapa). Izi zidzakutengerani ku Site Editor.

Dinani gawo lalikulu lomwe lili kumanja kwa menyu. Izi zidzakutengerani mkati mwa Block Editor.

Gawo 2: Onjezani Mwambo CSS

Kenako, alemba pa "Masitayelo" mafano pamwamba pomwe ngodya ya Block Editor.

Dinani chizindikiro cha "Zambiri" (chithunzi choyimirira cha madontho atatu), kenako dinani "CSS Yowonjezera."

Matani kachidindo yotsatira ya CSS mubokosi la "Zowonjezera CSS":

.current-menu-item {
  color: #e23f1b;
}

Sinthani mtengo pakati pa chizindikiro cha "#" ndi ";" chizindikiro chokhala ndi nambala ya hex pamtundu uliwonse womwe mukufuna kugwiritsa ntchito (mutha kupeza ma code hex code mkati mwa WordPress posintha chilichonse chomwe chili ndi mtengo wamtundu, kapena kugwiritsa ntchito chida chamtundu ngati HueMint or Ozizira).

Dinani "Save" batani pamwamba pa Block Editor, ndiye dinani "Save" kachiwiri.

Gawo 3: Onani Tsamba

Zosintha zanu zitasungidwa, mutha kudinanso chizindikiro cha "View Page" kuti muwone tsamba lanu ndi mtundu watsopano wa tsamba lomwe likugwira ntchito mumayendedwe anu akulu.

Kusaka zolakwika

Ngati nambala yomwe ili pamwambayi sinagwire ntchito kwa inu, mwina mukugwiritsa ntchito mutu womwe umagwiritsa ntchito makalasi osiyanasiyana pazinthu zomwe zikugwira ntchito, kapena mutha kugwiritsa ntchito maulalo okhazikika pamayendedwe anu m'malo mwa masamba.

Mitu Yosatchinga kapena Mitu Yachipani Chachitatu

Kuti muthetse vuto lakale, muyenera kugwiritsa ntchito chida cha "kuwunika" pa msakatuli wanu ndikuwona kuti ndi gulu liti lomwe limagwiritsidwa ntchito pamalumikizidwe amasamba omwe mukuyenda (mutha kuyesanso Googling "Kodi ____ mutu wamutu umagwiritsidwa ntchito bwanji maulalo atsamba mumayendedwe akulu").

Pankhani yomalizayi, ingosinthani maulalo anu amasamba kuti mulowe patsamba la Site Editor. Kuti muchite izi kuchokera mkati mwa Block Editor, dinani chizindikiro chomwe chili pakona yakumanzere kwa mkonzi (idzakhala logo ya WordPress kapena logo ya tsamba lanu).

Kenako dinani "Navigation". Dinani chizindikiro cha "Sinthani" pafupi ndi dzina lamasamba anu akulu.

Dinani pa navigation menyu kusintha izo. Kenako, dinani "Pitani ku chipika chowongolera makolo" mu Block Settings Sidebar ngati sichinatengedwe pamenepo mwachisawawa.

Pansi pamutu wa "Menyu" mu Block Settings Sidebar, muwona mndandanda wamasamba anu onse omwe ali mumayendedwe anu akulu. Ngati muli ndi masamba aliwonse pamasamba omwe alembedwa ngati ulalo wanthawi zonse (monga cholembera chapansi pa chithunzi chachitsanzo), muyenera kuchotsa zomwe zalembedwazo ndikuwonjezeranso ngati tsamba (ngati kuli kotheka).

Kuti muchite izi, dinani chizindikiro cha "Zosankha" pafupi ndi zomwe mwalemba, kenako dinani "Chotsani ____." Kenako, dinani chizindikiro cha "+" pansi pa mndandanda wamasamba.

Kenako, dinani "Ulalo wa Tsamba," kenako pezani tsamba lomwe mukufuna kuwonjezera. Mukawonjezera tsambalo, dinani "Sungani" ndikudinanso "Sungani" kachiwiri. Nkhaniyo iyenera kuthetsedwa.

Kuimba Izo pa Pinterest