Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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 Aufrufe • vor 1 Jahr •via X (Twitter)

11 Kommentare

Profilbild von James LePage
James LePagevor 1 Jahr

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.

Profilbild von James LePage
James LePagevor 1 Jahr

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:

Profilbild von James LePage
James LePagevor 1 Jahr

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

Profilbild von James LePage
James LePagevor 1 Jahr

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

Profilbild von James LePage
James LePagevor 1 Jahr

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.

Profilbild von James LePage
James LePagevor 1 Jahr

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.

Profilbild von James LePage
James LePagevor 1 Jahr

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 :)

Profilbild von James LePage
James LePagevor 1 Jahr

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.

Profilbild von Brian Coords 💻
Brian Coords 💻vor 1 Jahr

@shadcn

Profilbild von Dennis
Dennisvor 1 Jahr

@shadcn nice work! shadcn is 🐐ed

Profilbild von James LePage
James LePagevor 1 Jahr

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

Ähnliche Videos