WordPress.org

Make WordPress Core

Opened 10 months ago

Last modified 8 months ago

#51938 new defect (bug)

Twenty Twenty-One shows top level category descriptions in menus

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

Description

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

Download all attachments as: .zip

Change History (8)

#1 @andraganescu
10 months ago

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

#2 @SergeyBiryukov
10 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
10 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
10 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
9 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
9 months ago

  • Version set to 5.6

#7 @poena
8 months ago

Hi

I have added a brief description about how to enable menu descriptions to the documentation here:
https://wordpress.org/support/article/twenty-twenty-one/#menu-descriptions

Note: See TracTickets for help on using tickets.