Reading view

Stuggling with Mega Menus in custom Block Theme

Hello!

I'm building out a bare-bones block theme to try and learn what's going on under the hood.

First I've got to say I'm running into difficulty. Any tutorials/guides including the official theme handbook seem to be slightly out of date using theme.json v2. Finding a logical resource walking from step A to B seems to be an impossibility.

The mixing of theme.json, inline styles, style.css and annotated html comments to define how the site looks has got me questioning my sanity.

The tutorial I've been following already seems to require fighting against the wordpress css by overriding just to get full width content to work. I'm at a loss for words, this is just basic html layout with some css.

Basically without going on too much it seems like all of this hoopla is to make the content editable to the lay-man. Otherwise things would be so much easier with a classic theme.

So the real roadbloack I've run into so far is with the navigation. Specifically, I don't see a way at all that it will be possible to add a mega-menu without simply hardcoding it in, or making use of a Mega Menus-type plugin, which seem to not make use of blocks anyway.

Creating a mega-menu that works with FSE seems like it will be far more work than creating a basic theme itself.

My current plan is to simply make a separate mega-menu plugin to hardcode the megamenu navigation for now to take care of mega-menu functionality while unfortunately going against the FSE ethos here.

I'm curious to know how block theme developers are handling FSE and Mega Menus?

submitted by /u/AberrantNarwal
[link] [comments]
  •  

How do you keep Docker up to date over multiple projects?

Hello!

Here's what I'm not understanding about Docker:

You have to essentially write out the environment for each project, so you will have a docker-compose file that will potentially change from one project to the next.

Say over time you have 10 projects, your oldest project is maybe running an outdated version of php described in the docker file. Or maybe some setting has changed... and this happens on each project.

How do you keep each docker configuration, of which there are now 10, up to date and in sync?

Maybe keep a repo with your up to date WordPress-Docker config and pull it down to each project?

Thanks!

submitted by /u/AberrantNarwal
[link] [comments]
  •  
❌