Тёмный

wp_nav_menu example & Tutorial 

Seeker Labs
Подписаться 2,1 тыс.
Просмотров 11 тыс.
50% 1

Blog Post: truthseekers.io/wp_nav_menu-e...
Source Code: github.com/truthseekers/wp-na...
In this video we go over just about everything wp_nav_menu has to offer. There's complete working source code above. We'll talk about the items_wrap and how you can customize the Unordered List container (UL) and how you use the sprintf thingy that php provides.
We'll show you two different ways of adding classes to your list items. the first way is with a custom property passed into wp_nav_menu. The second way is by using the Walker class.
Finally, we'll show you how to use the four functions walker_nav_menu provides so you can completely customize your navigation.

Наука

Опубликовано:

 

30 ноя 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@generica1
@generica1 6 месяцев назад
This tutorial was a lifesaver. Got it working without any hiccups.
@muhammadqurban102
@muhammadqurban102 3 месяца назад
I am new subscriber by just watching this video. You explained everything in a very good way. Thanks
@mlh7h
@mlh7h 2 года назад
Thanks for the reminder on manage locations. I was banging my head against the wall for way too long trying to figure out how the names of the locations worked.
@mohamedhassanin6054
@mohamedhassanin6054 Месяц назад
Thank you
@Beni352
@Beni352 2 года назад
Great tutorial , much needed
@ChristianMuggli
@ChristianMuggli 8 месяцев назад
you are a hero, 100%!
@alexandrealvarenga1638
@alexandrealvarenga1638 Год назад
that so increadeble, thaks for the class
@user-hq9dy5nb1g
@user-hq9dy5nb1g 10 месяцев назад
Good stuff man thanks!
@versusgravity
@versusgravity Год назад
Thanks, great tut, was very helpfull! :)
@dashingpix
@dashingpix 2 года назад
Good One
@zacharyarsenault4617
@zacharyarsenault4617 Год назад
fianally somone that explained everything
@wilsont2377
@wilsont2377 Год назад
Hello I have problem at 3:24 which I try to add same code line in function.php but somehow my at dashboard theme appearance section menu still didn't appear is there any solution for this one?
@johnpdev
@johnpdev Год назад
Great tutorial, thank you! If possible could tell how to add elements inside another element? For exemple lets say that I'd like to add a inside the menu's to use icon on my menu, is that possivble? Or even add two like .
@generica1
@generica1 6 месяцев назад
The way I did it. I added the font awesome icon code to the title attribute of the menu item. Then in the nav walker: if ($item->attr_title) { $tmp_icon_classes = $item->attr_title; } - then I add that to this : ""
@outpost31737
@outpost31737 Месяц назад
You don't need to add a custom function to style the li's. Why have you done it this way?
@saradobric8946
@saradobric8946 11 месяцев назад
I do not understand why my 3rd depth level in menu does not show on front.
@anirudhachakrabarty2050
@anirudhachakrabarty2050 6 месяцев назад
How to add active class on the selected item?
@outpost31737
@outpost31737 Месяц назад
.current-menu-item a
@heroksiddiqi5376
@heroksiddiqi5376 Год назад
15:49 second...can somebody explain what 1, 3 means as parameters?
@SeekerLabs
@SeekerLabs Год назад
developer.wordpress.org/reference/functions/add_filter/ It appears they are the priority, and number of arguments the function accepts.
Далее
Она Может Остановить Дождь 😱
00:20
БАТЯ И ТЁЩА😂#shorts
00:58
Просмотров 2,4 млн
Старый Дим Димыч вернулся😱
00:16
How to Learn to Code FAST (Do This or Keep Struggling)
11:00
WordPress Block Theme Development
47:33
Просмотров 20 тыс.
You might not need useEffect() ...
21:45
Просмотров 155 тыс.
These CSS PRO Tips & Tricks Will Blow Your Mind!
8:48
Просмотров 130 тыс.
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
ЗАБЫТЫЙ IPHONE 😳
0:31
Просмотров 18 тыс.
iPhone socket cleaning #Fixit
0:30
Просмотров 16 млн