Make WordPress Core

Opened 14 months ago

Closed 3 days ago

#51938 closed defect (bug) (invalid)

Twenty Twenty-One shows top level category descriptions in menus

Reported by: andraganescu Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.6
Component: Bundled Theme Keywords:
Focuses: ui Cc:


Adding a category link to a menu, breaks the menu layout if the category has a description, particularly if the description is longer.

Attachments (1)

Screen Shot 2020-12-04 at 16.55.33.png (163.8 KB) - added by andraganescu 14 months ago.

Download all attachments as: .zip

Change History (10)

#1 @andraganescu
14 months ago

  • Component changed from General to Bundled Theme
  • Focuses ui added

#2 @SergeyBiryukov
14 months ago

  • Summary changed from TwentyTwentyOne shows top level cateogry descriptions in menus to Twenty Twenty-One shows top level category descriptions in menus

#3 @poena
14 months ago

I am not sure if this is a bug or a case of "the user needs to use a shorter description".

The description is also a feature that is turned off by default and the text only displays if enabled.

#4 @kjellr
14 months ago

Yeah, I agree with @poena — at some point, using a shorter description is the answer here. 😄

This seems like an edge case to me. Doesn't mean we shouldn't fix it, but I am a little unclear how frequently longer descriptions are typically used on actual sites. If folks have examples they can share, that would help us assess the problem and priority!

#5 @ryelle
14 months ago

I think part of the reason this is unexpected is that by default, the menu item's description field is hidden. So when you add a category to the menu, it autofills the category description into the menu item's description, but you don't see that in the menu screen. Ironically, it doesn't do that in the customizer, where it would be obvious.

You can change the menu description from the menu UI without changing the category description, so it can have a shorter description (or none) in the menu, while keeping the longer text on the category archive. I don't know that there's much to fix here, maybe a note in the docs that the menus use descriptions & how to see them would help.

#6 @desrosj
14 months ago

  • Version set to 5.6

#7 @poena
12 months ago


I have added a brief description about how to enable menu descriptions to the documentation here:

#8 @poena
3 days ago

Hi! Do you consider this solved with the added the information?

#9 @andraganescu
3 days ago

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

Yes @poena thank you for the ping, let's close this.

Note: See TracTickets for help on using tickets.