Make WordPress Core

Opened 8 weeks ago

Last modified 7 weeks ago

#60903 new defect (bug)

Theme.json for navigation

Reported by: aureliewp's profile aureliewp Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.5
Component: General Keywords:
Focuses: Cc:


Hello wordpress community members!

I'm here to report a bug.

The elements of the theme.json file concerning navigation are no longer taken into account in version 6.5.

Have a nice day!

Attachments (1)

theme.json (4.7 KB) - added by aureliewp 8 weeks ago.

Download all attachments as: .zip

Change History (6)

#1 @poena
8 weeks ago

Hi @aureliewp and welcome to WordPress Trac.

Can you include any more information or step-by-step instructions for how to reproduce the problem?

Can you share the code in theme.json that is not working?

Does the problem happen if you disable all plugins and add the same code to a default (block) theme like Twenty Twenty-Four?

8 weeks ago

#2 @aureliewp
8 weeks ago

Thank you for your prompt feedback.
The part that is no longer supported is the "blocks/core/navigation" part of the theme.json attachment.
It makes no difference if I disable the extensions.

#3 @poena
8 weeks ago

I added the theme.json content to Twenty Twenty-Four.
As far as I can tell, the styling is working for the page list, sub menus, and regular link items. Color, size, font weight, text decoration and margin all seem to be correct.

#4 @poena
7 weeks ago

Though if you are making changes to theme.json, remember that they will not always take effect if the site has custom styles saved. Because then the changes that the user makes in the Site Editor, the ones saved in the database, are used instead of the theme.json.

#5 @aureliewp
7 weeks ago

Thank you very much Carolina for your quick reply.
I don't have a custom style saved in the editor.
So I'll take a closer look at what's going on on my end.

Note: See TracTickets for help on using tickets.