Back to Question Center
0

I-Semalt: Ama-plugin we-WordPress we-Site-Specific

1 answers:

Uma usanda kwakha iwebhusayithi, kubalulekile ukuyifaka ngokwezifiso, shintsha izilungiselelo zayo bese ufaka ama-plugin ambalwa aqondene nesayithi. Ezimweni eziningi, abantu abazi ukuthi bangasebenzisa kanjani ama-plugin aqondene nesayithi nokuthi bangabhala kanjani imibhalo ye-PHP engathinta ukuziphatha kwamawebhusayithi abo. Njengomthetho jikelele, izinto eziqinisekisa ukunikeza isayithi lakho ukubukeka okukhangayo nezomsebenzi zidinga ukunakekelwa kwakho okukhulu, futhi ama-plugin yizinto eziyinhloko njengoba zisiza ukuguqula ukubukeka kwesayithi futhi zenze kube lula futhi ziwusizo kubasebenzisi.

U-Alexander Peresunko, iMenenja Yokuphumelela Kwamakhasimende Semalt , uhlinzeka ngalezi zindaba eziwusizo ngalokhu.

Ukusebenzisa i-plugin eqondene nesayithi:

Uma unelisekile ngendatshana yewebsite yakho, ama-plugin aqondene nesayithi kulula ukuyisebenzisa futhi angatholakala kalula. Ngicela lapha ngitshele ukuthi lezi plugin azihlangani nhlobo nokubukeka kwewebhu lakho. Kunalokho, zenzelwe ukulawula ukuthi iwebhusayithi yakho isebenza kanjani futhi iqukethe amakhodi we-JavaScript ne-CSS. Wonke amakhodi ayadingeka ukuze afakwe kusayithi lakho ukuze asebenze kahle. Ezinye izinto ezifanele ama-plugin aqondene nesayithi yilokhu:

1. Ukubhaliswa kokuthunyelwe kwenkambiso kanye nezintela

2. Ukulondoloza nokufaka imethadatha nezincazelo

3. Ukuguqulwa kwedeshibhodi ye-WordPress, okwenza kube ngumsebenzisi-friendly futhi elula kuwe

4. Ukudala izilungiselelo eziningi kanye namakhasi okukhetha

5. Ukungeza amakhodi wokulandelela, kufaka phakathi amaphikseli wokuguqulwa ne-Google Analytics

6. Ukwakha izici ezijwayelekile ezingathintani netihloko yakho yewebhu

7. Ukwenza izinguquko kuwebhusayithi yakho noma nini lapho ufuna noma noma nini lapho izinguquko zishintsha

Izinzuzo zama-plugin-Site Specific

Kukhona izinzuzo eziningi zama-plugin aqondene nendawo, njengamakhodi owengeza kulawo ma-plugin asebenza kahle ngisho nalapho ushintsha isihloko. Ngisho noma kukhona amaphutha kumakhodi, ukusebenza kwewebhusayithi yakho ngeke kuthinteke, ngenxa yamapulawundi athile aqondene nokwenza ukuthi kwenzeke.

Uhlobo luni lwe-plugin okufanele uyengeze kusayithi lakho?

Uma kuziwa ekukhulumeni ngamazwibela amakhodi, qiniseka ukuthi azihlobene nesihloko sakho kodwa i-plugin yakho ye-WordPress. Kufanele wengeze isitayela sekhodi ukuze uqondise kabusha abasebenzisi bakho bese wengeza amabhokisi wokuqinisekisa okusebenza kahle kwewebhusayithi yakho. Ama-plugin aqondene nesayithi asisiza ukuthi wenze ngokwezifiso izinhlobo zokuthunyelwe kwebhulogi yakho, faka izikhangiso phakathi kwalezi zihloko, futhi ikusize ugcine i-SEO yesayithi lakho elondolozwe kulo lonke.

Ungayifaka kanjani i-plugin eqondene nesayithi nokuthi iyiphi ikhodi yayo?

Uma ungafuni ukubambelela kunoma iyiphi i-PHP snippet, ama-plugin aqondene nesayithi angafakwa ngokwabo, noma ungafaka ikhodi ethile. Ikhodi okufanele uyifake kusigaba se-Editor yilezi:

/ *

Isihloko se-Plugin

: ABC Isibonelo plugin

Incazelo ye-Plugin: Yengeza ukuphela okujabulisayo kuzo zonke izikhala / amakhasi

* /

echazwe ('ABSPATH') noma afe ('Akukho ukufinyelela okuqondile kwefayela okuvumelekile!');

// Shintsha okuqukethwe kokuthunyelwe

sebenzisa i-myplugin_filter_content (i-content content) {

buyela ku-$ okuqukethwe. 'Futhi baphila ngokujabula njalo. Isiphetho.';

}

add_filters ('the_content', 'myplugin_filter_content');

Uma unomuzwa wokuthi i-plugin eqondene nesayithi ayisebenzi kahle ngekhodi engenhla, kufanele uyilande futhi uyifake ku-directory ye-plugin ye-WordPress bese uhlela izinto ngokuvumelana nezidingo zebhizinisi lakho.

November 29, 2017
I-Semalt: Ama-plugin we-WordPress we-Site-Specific
Reply