Make WordPress Core

Opened 6 months ago

Last modified 6 months 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:

Description

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 6 months ago.

Download all attachments as: .zip

Change History (6)

#1 @poena
6 months 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?

@aureliewp
6 months ago

#2 @aureliewp
6 months 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
6 months ago

Hi
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
6 months 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
6 months 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.