Abuuritaanka Mawduuca Ilmaha ee WordPress
Kaliya in yar oo ka mid ah isticmaalayaasha WordPress ayaa isticmaala mawduuca ilmaha taasina waa sababta oo ah qaar badan oo ka mid ah isticmaalayaashu ma yaqaanaan waxa uu yahay mawduuca ilmaha ama Abuuritaanka Mawduuca Ilmaha(Creating Child Theme) ee WordPress . Hagaag(Well) , inta badan dadka isticmaala WordPress waxay u janjeeraan inay wax ka beddelaan ama habeeyaan mawduucooda laakiin dhammaan wax ka beddelistaas ayaa lumaya markaad mawduucaaga cusbooneysiiso waana meesha isticmaalka mawduuca carruurtu yimaado. Markaad isticmaasho mawduuca ubadka markaa dhamaan habayntaada waa la keydin doonaa oo si fudud ayaad u cusboonaysiin kartaa dulucda waalidka.
Abuuritaanka Mawduuca Ilmaha ee WordPress
Abuuritaanka Mawduuca Ilmaha ee Mawduuca Waalidka oo Aan La beddelin(Creating a Child Theme from an Unmodified Parent Theme)
Si aad mawduuc ilmo ugu abuurto WordPress waxaad u baahan tahay inaad gasho cPanel-kaaga oo aad u gudubto public_html ka dib wp-content/themes halkaas oo aad u samaynayso gal cusub mawduuca ilmahaaga (tusaale /Labaatan iyo lix iyo toban-ilmo/). Hubi inaadan wax boosas ah ku haysan magaca buugga mawduuca ilmaha taasoo keeni karta khaladaad.
Lagu taliyay:(Recommended:) Waxa kale oo aad isticmaali kartaa Hal-guji mawduuca Ilmaha(One-Click Child Theme plugin) si aad u abuurto mawduuc ilmo (kaliya mawduuca waalidka aan la bedelin).
Hadda waxaad u baahan tahay inaad u abuurto feyl style.css mawduuca ilmahaaga (gudaha buugga mawduuca ilmaha ee aad hadda abuurtay). Markaad abuurto faylka kaliya nuqul ka bixi oo dheji koodka soo(Change) socda
/* Theme Name: Twenty Sixteen Child Theme URI: http://example.com/twenty-sixteen-child/ Description: Twenty Sixteen Child Theme Author: WordPress Team Author URI: http://example.com Template: twentysixteen Version: 1.3.0 License: GNU General Public License v3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html */
Fiiro gaar ah: (Note: ) Khadka Template ( Template : labaatan iyo sixteen) waa in la beddelaa iyadoo loo eegayo magacaaga hadda ee hagaha mawduuca (mawduuca waalidka ee ilmahooda aanu abuurayno). Mawduuca waalidka ee tusaalaheennu waa mawduuca lix iyo labaatanka , marka (Twenty Sixteen)Template - ku waxa uu noqonayaa lix iyo labaatan.
Horay @import waxa loo isticmaalay in lagu shubo qaabka xaashida laga soo bilaabo waalidka loona gudbiyo mawduuca ubadka, laakiin hadda ma aha hab wanaagsan maadaama ay kordhinayso wakhtiga lagu shubayo qaabka xaashida. Halkii aad isticmaali lahayd @import sida ugu fiican si aad u isticmaasho hawlaha PHP ee mawduuca ilmahaaga.
Si aad u isticmaasho faylka functional.php waxaad u baahan tahay inaad mid ka dhex abuurto buugga mawduuca ilmahaaga. Isticmaal koodka soo socda faylkaaga functional.php:
<?php add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } ?>
Koodhka kore wuxuu shaqeeyaa kaliya haddii mawduuca waalidka uu isticmaalo hal fayl oo .css ah si uu u hayo dhammaan koodka CSS .
Haddii mawduuca ilmahaaga style.css uu ka kooban yahay koodka CSS (sida caadiga ah), waxaad u baahan doontaa inaad sidoo kale safto:
<?php function my_theme_enqueue_styles() { $parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme. wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') ); } add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); ?>
Waa waqtigii la dhaqaajin lahaa mawduuca ilmahaaga, gal guddiga maamulkaaga ka dibna tag Appearance > Themes oo ka dhaqaaji mawduuca ilmahaaga liiska mawduucyada jira.
Fiiro gaar ah:(Note:) Waxaa laga yaabaa inaad u baahato inaad dib u kaydiso liiskaaga ( Appearance > Menus ) iyo xulashooyinka mawduucyada (ay ku jiraan asalka iyo sawirada madaxa) ka dib markaad dhaqaajiso mawduuca ilmaha.
Hadda mar kasta oo aad rabto inaad wax ka beddesho style.css ama functionals.php waxaad si fudud taas ugu samayn kartaa mawduuca ilmahaaga adoon saamaynayn galka mawduuca waalidka.
Abuuritaanka Mawduuca Ilmaha(Child Theme) ee WordPress ee mawduucaaga waalidka, laakiin badidiinna waxaad hore u habaysay mawduucaaga markaa habka kor ku xusan kuma caawin doono haba yaraatee. Xaaladdaas, hubi sida loo cusboonaysiiyo Mawduuca WordPress adoon lumin is-beddelka.
Haddii aad rajaynayso in maqaalkani uu waxtar kuu lahaa laakiin haddii aad wali hayso wax su'aal ah oo ku saabsan hagahan fadlan xor u noqo inaad ku waydiiso faallooyinka.
Related posts
Sida Loo Sameeyo Mawduuca Ilmaha WordPress
Sida Loo Sameeyo Mareegtaada Twitter-ka La mid ah Adigoo Adeegsanaya Mawduuca P2 ee WordPress
Sida loo raro goobta WordPress mid ka mid ah martida loo yahay mid kale
Sida loo rakibo & habaynta WordPress ee Microsoft Azure
Sida si xawli leh loogu socodsiiyo WordPress-ka Microsoft Azure
Qaabka Qorista Blog ee ugu Wanaagsan si aad Dhibcahaaga u Gudbiso
Sida Loo Kobciyo Boggaga WordPress
Sida Gacanta Loogu Sameeyo WordPress Domain
Wix Vs WordPress: Keebaa Ugu Wanaagsan Abuurista Mareegtaada?
Sida Loo Dardar Geliyo Mareeg Kasta Oo WordPress Ah Isticmaalka .HTACCESS
Waa inuu lahaadaa WordPress Yoast SEO Settings 2022
Casharka WordPress Gutenberg: Sida Loo Isticmaalo Tifaftiraha Cusub
Sida Loo Helo Adminkaaga WordPress Login
Sida loo rakibo WordPress on Google Cloud Platform
Waa maxay AMP ee WordPress iyo sida loo rakibo
Sida bogga loogu nuqulo WordPress
Squarespace Vs WordPress: Waa kee Platform Goobta Wanaagsan?
Sida Looga Saaro Malware-ka Mareegahaaga WordPress
8 mawduucyo WordPress ah oo bilaash ah oo lagu rakibo
Isticmaalayaasha ka jiheeya bogga 404 ee WordPress