正在加载视频...

视频加载失败

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

相关视频