Make WordPress Core

Opened 13 months ago

Closed 2 months ago

#60903 closed defect (bug) (worksforme)

Theme.json for navigation

Reported by: aureliewp's profile aureliewp Owned by:
Milestone: 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 13 months ago.

Download all attachments as: .zip

Change History (7)

#1 @poena
13 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
13 months ago

#2 @aureliewp
13 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
13 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
13 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
13 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.

#6 @poena
2 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Hi,
I am going to close this ticket since the problem has not been reproduced and because there has been no new responses for 11 months. I believe it is a support question, which hopefully has been resolved now.
If there is any more information, the ticket can always be reopened.

Note: See TracTickets for help on using tickets.