Onjezani Chizindikiro Cha Kunyumba ku Menyu Yoyenda Ndi WordPress

menyu kunyumba

Timakonda WordPress ndipo timagwira nayo pafupifupi tsiku lililonse. Menyu yosanja yomwe yakhala ikugwira ntchito mu WordPress ndiyodabwitsa - kukoka kwabwino ndikuponya zomwe ndizosavuta kugwiritsa ntchito. Ngati mutu wanu ulibe gawo la menyu pomwe mutha kusintha mindandanda yanu, muyenera kupeza wopanga mapulogalamu watsopano!

Ndikuphatikiza katundu wathu wa Ajax, ndimafuna kuchepetsa kukula kwa ulalo wakunyumba pazosanja ndikuyika chithunzi cha kunyumba. Kuwonjezera chizindikirochi sichosankha kudzera pa WordPress, komabe, timayenera kuwonjezera magwiridwe antchito kudzera pa fayilo yathu yamutu wa function.php. Ndapeza mawu ozungulira pa intaneti a kuwonjezera ulalo wakunyumba kumenyu… Ndinangofunika kusintha kuti ndigwiritse chithunzi chenicheni m'malo moyanjanitsa.

Onjezani Chizindikiro Cha Kunyumba ku WordPress

kuwonjezera_filter ('wp_nav_menu_items', 'add_home_link', 10, 2); ntchito add_home_link ($ zinthu, $ args) {if (is_front_page ()) $ class = 'class = "current_page_item home-icon"'; china $ class = 'class = "home-icon"'; $ kunyumbaMenuItem = ' '. $ args-> kale. ' '. $ args-> link_pambuyo. '  '. $ args-> link_after. ' '. $ args-> pambuyo. ' '; $ zinthu = $ homeMenuItem. $ zinthu; bweretsani zinthu za $; }

Khodi iyi imawonjezera kalasi ku chithunzichi kuti muthe kusintha komwe kuli kudzera pa tsamba lanu.

Mfundo imodzi

  1. 1

Mukuganiza chiyani?

Tsambali likugwiritsa ntchito Akismet kuchepetsa spam. Phunzirani momwe deta yanu ikufotokozera.