Загрузка видео...

Не удалось загрузить видео

На главную

It's impressive how modern WordPress can look if you remove the Admin Menu and Top Bar. Inspired by the new shadcn sidebar release, I decided to extend #WordPress to use that new sidebar solution as opposed to the current one. This is WordPress core, just without the old Admin...

29,476 просмотров • 1 год назад •via X (Twitter)

Комментарии: 11

Фото профиля James LePage
James LePage1 год назад

This was my weekend project after seeing: The idea behind the implementation is simple. Use PHP to make a more modern Admin Menu API, use that new API to create the sidebar.

Фото профиля James LePage
James LePage1 год назад

New sidebars mean that we can do fun things like fix the Admin Notice problem once and for all. Here's a notification center concept:

Фото профиля James LePage
James LePage1 год назад

Also was experimenting with merging @agentwp_ai into this more 'native' experience, as you can see in that video☝️

Фото профиля James LePage
James LePage1 год назад

Finally, we banish the Top Bar components to the footer, like most modern platforms do:

Фото профиля James LePage
James LePage1 год назад

As you can probably tell, this is pretty quick and dirty. There are many problems and rough edges. But I was shocked at how much nicer (imo) #WordPress looked by simply updating the main thing that we all use to get around it; the menus.

Фото профиля James LePage
James LePage1 год назад

PS: this morning I saw a really nice example that's a bit more wholistic by @SaxonFletcher, which is absolutely worth checking out: Previously, the menus in my demo were collapsable (like shadcn), but I took inspiration from his implementation and moved submenus to their own interface within the sidebar.

Фото профиля James LePage
James LePage1 год назад

My favorite part here! It's WordPress core!! Nothing is changed other than just ripping out the old menus and replacing with the new ones :)

Фото профиля James LePage
James LePage1 год назад

Got some DMs about the search here. It's actually an external plugin that's been hooked into the input field in the custom sidebar. A big problem in WordPress is that there's no good central search in admin. This solves it.

Фото профиля Brian Coords 💻
Brian Coords 💻1 год назад

@shadcn

Фото профиля Dennis
Dennis1 год назад

@shadcn nice work! shadcn is 🐐ed

Фото профиля James LePage
James LePage1 год назад

@shadcn It's so so good. And the sidebars are an absolute blessing, they're horrific to try and build from scratch

Похожие видео