Phunzirani momwe mungapangire menyu yomata yakusaka kwakukulu kwa tsamba lanu la WordPress! Zomata zomata zimathandizira kupititsa patsogolo luso la ogwiritsa ntchito popangitsa kuti masamba atsamba lanu azipezeka mosavuta kwa obwera patsamba. Komanso, zitha kuthandiza kukonza mawonekedwe atsamba lanu lonse. Tiyeni tilowemo!

M'ndandanda wazopezekamo

1. Pitani ku Site Editor

Gawo loyamba pakuchita izi ndikulowera ku "Site Editor" mkati mwa dera la WordPress admin. The Site Editor ikupezeka pa "Block Themes" mu WordPress, poganiza kuti mukugwiritsa ntchito WordPress version 5.9 kapena yatsopano.

Navigate to the WordPress Site Editor via Appearance>Editor

Kuti mupite ku Site Editor, pitani ku Maonekedwe>Mkonzi (muvi wofiyira pachithunzi pamwambapa) kuchokera pakuyenda kwakukulu mdera la WP Admin.

Click On Main Webpage Content Area On Right Side of Screen

Dinani pagawo lalikulu lomwe lili kumanja kwa chinsalu (chofotokozedwa mumtundu wabuluu wowoneka bwino komanso wowonetsedwa ndi muvi wabuluu pachithunzi pamwambapa). Izi zidzakutengerani ku Block Editor mkati mwa Site Editor.

Edit Your WordPress Template by Clicking Template Name Link in Page Settings Sidebar

Kudzanja lamanja, pansi pa tabu "Tsamba," muwona mzere wolembedwa "Template" (yofotokozedwa mubuluu pachithunzi pamwambapa). Dinani pa dzina lachitsanzo/ulalo (muvi wofiyira). Kenako, dinani "Sinthani Template" (muvi wobiriwira - nthawi zina "Sinthani Template" ndi ulalo wawung'ono wabuluu pansi pa dontho lomwe likuwonetsa dzina lanu la template).

2. Sinthani Tsamba Lanu

Tsopano mukhala mkati mwa Template Editor patsamba loyamba latsamba lanu. (Ngati mulibe tsamba loyambira patsamba lanu, mutha kuyang'ana phunziro ili pakukhazikitsa tsamba lokhazikika latsamba lanu la WordPress).

Click on the Header Template Part at Top of Site Editor

Pamwamba pa template ndi kusaka kwanu kwakukulu patsamba lanu - kumatchedwanso "Mutu" watsamba lanu. Mukasuntha mbewa yanu pamwamba pa chinthu ichi, muwona bokosi lofiirira lomwe likufotokoza (muvi wofiyira pachithunzi pamwambapa). Izi zikuwonetsa kuti chinthu ichi ndi a "synced pattern," zomwe zikutanthauza kuti kusintha kwachitsanzo chimodzi kudzasintha pazochitika zonse patsamba lonse. Dinani m'derali kuti musankhe mutu wolumikizana ndi mutu.

Ngati ichi ndiye mutu waukulu wa tsamba lanu, muyenera kuwona kuti mawonekedwe olumikizidwa alembedwa "Mutu" mu block toolbar.

3. Onjezani Mutu Wanu ku Gulu

Click the Three Dots Icon of the Block Toolbar and Click Group to Group WordPress Header

M'kati mwa zida za block pamutu wosankhidwa, dinani chizindikiro cha "Zosankha" (muvi wofiyira pachithunzi pamwambapa) ndikusankha "Gulu" (muvi wobiriwira). Izi zidzayika pateni yolumikizidwa kukhala gulu lamagulu.

The WebPage Header Block Is Now a Group Block

Mudzazindikira kuti chida cha block tsopano chili ndi chithunzi cha block block (muvi wabuluu pachithunzi pamwambapa), ndipo mawonekedwe ozungulira malo akulu olowera tsopano ndi abuluu m'malo mwa chibakuwa (muvi wofiyira).

Click the Alignment Icon in the Block Toolbar and Select Wide Width

Zindikirani kuti izi zitha kusintha m'lifupi mwazosankha zanu zazikulu. Kuti musinthe m'lifupi mwake, yang'anani mbewa yanu pamtundu wolumikizidwa wa Mutu ndikudina kuti musankhe (muvi wofiyira).

Mu block toolbar ya Header synced pattern, dinani chizindikiro cha "Gwirizanitsani" (muvi wobiriwira) ndikusintha izi kuti zikhale m'lifupi zomwe mukufuna (muvi wabuluu - mwa ine ndasankha "Wide Width").

Kuti mubwerere ku block ya Gulu, dinani chizindikiro cha "Sankhani Gulu" pazida za Header block (muvi wapinki).

WordPress Yosavuta: Momwe Mungamangirire Mawebusayiti Amphamvu Maphunziro a Davies Media Design

4. Khazikitsani Gulu kuti "Lomata"

Navigate to WordPress Block Settings Sidebar and Select Sticky From Position Dropdown

Ndi gulu lomwe lasankhidwa, pitani ku tabu ya "Block" pansi pa Zikhazikiko Sidebar kumanja kwa chinsalu (muvi wofiyira pachithunzi pamwambapa).

Dinani chinthu cha menyu cholembedwa "Position" (muvi wobiriwira). Tsopano muwona kutsitsa apa kolembedwa "Kufikira" (muvi wapinki). Dinani kutsitsa ndikusankha njira ya "Zomata" (muvi wabuluu).

Click Save to Save Your WordPress Website Changes

Yendani pamwamba pa mkonzi ndikudina batani la "Sungani" (muvi wofiyira), kenako dinani "Sungani" kachiwiri. Tsopano mudzakhala ndi navigation main menu pa tsamba lanu la WordPress!

5. Lembani Menyu Yomata

Mutha kusintha / kusintha zinthu zambiri zamasamba atsopano omata, koma paphunziroli ndingowonjezera maziko kuseri kwa gululo kuti ndiwonetsetse kuti mndandandawo ukufalikira patsamba lonselo.

Click the Styles Tab in the WordPress Block Settings Sidebar

Kuti ndichite izi, ndikusankha Gulu la block, ndikuyenda kupita ku tabu ya "Styles" ya Zikhazikiko Sidebar (muvi wofiyira pachithunzi pamwambapa).

Pansi pa "Mtundu," ndikudina "Background" njira (muvi wabuluu), ndikusankha chowotcha choyera kuti mtundu wakumbuyo ukhale woyera (muvi wobiriwira).

Apanso ndikudina "Save" kawiri kuti ndisunge zosinthazo.

Dziwani kuti nthawi zonse mutha kusintha m'lifupi, kutalika, kapena kutalika kwa mutu wa tsamba lanu pansi pa gawo la "Dimensions" pogwiritsa ntchito masilayidi a "Padding" ndi "Margin".

Preview Your Sticky Website Header in WordPress by Clicking Preview Icon

Mutha kuwona tsamba lanu podina chizindikiro cha chipangizocho (muvi wofiyira), kenako dinani "Onani tsamba" (muvi wobiriwira).

When You Scroll, Your Sticky Menu Will Remain At the Top of Your Website

Mutha kusuntha tsamba lanu ndikuwona zomata zotsatsira zikukhalabe pamwamba (muvi wobiriwira)!

Click the Back Button to Return to the WordPress Site Editor

Mukamaliza kusintha menyu yanu yomata, dinani batani la "Back" pamwamba pa mkonzi (muvi wofiyira). Izi zidzakubwezerani kutsamba lanu mkati mwa Side Editor.

Kuti mubwerere kudera la WP Admin, ingodinani pa logo pakona yakumanzere yakumanzere.

Ndizo za phunziro ili! Ngati munasangalala nazo, mungathe phunzirani WordPress ndi maphunziro anga ozama pa Udemy. Kapena, mutha kuyang'ana zina zaulere Maphunziro avidiyo a WordPress ndi Zolemba zothandizira WordPress patsamba langa.