Make WordPress Core

Opened 13 years ago

Closed 16 months ago

#16346 closed enhancement (fixed)

Slug field too narrow in Post Edit

Reported by: abtop's profile ABTOP Owned by: audrasjb's profile audrasjb
Milestone: 6.2 Priority: normal
Severity: minor Version: 3.1
Component: Posts, Post Types Keywords: has-patch has-screenshots commit
Focuses: ui, administration Cc:


When you edit a post, there is a Slug panel at the bottom where you can edit the slug. The field displaying the text of the slug is set inline to 13, which is not nearly wide enough to show more than 15 letters.

Attachments (4)

16346.diff (700 bytes) - added by nacin 13 years ago.
16346.1.diff (821 bytes) - added by sabernhardt 18 months ago.
Capture d’écran 2023-01-21 à 11.43.14.png (282.2 KB) - added by audrasjb 16 months ago.
Before patch
Capture d’écran 2023-01-21 à 11.44.31.png (292.8 KB) - added by audrasjb 16 months ago.
After patch

Download all attachments as: .zip

Change History (18)

13 years ago

  • Summary changed from Slag field too narrow in Post Edit to Slug field too narrow in Post Edit

#2 @jorbin
13 years ago

  • Keywords ux-feedback added; slug edit post width removed
  • Milestone changed from Awaiting Review to Future Release

#3 @nacin
13 years ago

  • Keywords has-patch added; ux-feedback removed

It's such a lame meta box, it's really only for no JS, and it's hidden by default. But patch attached.

13 years ago

#4 @iseulde
11 years ago

  • Component changed from Administration to Editor

#5 @helen
11 years ago

  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

We really should remove the metabox instead :) #18523

#6 @sabernhardt
18 months ago

#31261 was marked as a duplicate.

#7 @sabernhardt
18 months ago

#57285 was marked as a duplicate.

#8 @sabernhardt
18 months ago

  • Component changed from Editor to Posts, Post Types
  • Focuses ui administration added
  • Milestone set to 6.2
  • Resolution wontfix deleted
  • Status changed from closed to reopened


  • tyxla wanted to increase the width and the top margin (#31261)
  • abitofmind found the Slug metabox on the media attachment page (#57285)

I think adding the large-text class is worth a change for as long as the Slug field is still available. The margin may be good enough, even though it's smaller on the top than the bottom, considering that we would prefer to remove the metabox.

#9 @abitofmind
18 months ago

Thanks for trying to get the patch integrated into the current version!

This little fix would help editing in a contemporary layout. Thanks!

#10 @abitofmind
18 months ago

Meta / Offtopic: I usually always try to find existing issues, but failed here.

  • is really awful.
    • Only two checkboxes: Search in: ☑︎ Changesets ☑︎ Tickets
    • No "only search in title" filter or component filters. Nothing.
  • The linked help page
    • Does not present any query language either.
    • Seems to be really that limited.
    • Hard to conduct a proper research prior reporting for the occasional contributor.
    • Possibly low hanging fruit (search option config? better help text?) to improve the community experience.

#11 @sabernhardt
18 months ago

@abitofmind Yes, that's off-topic :) If you would like to propose Trac changes, you could visit Meta Trac. If it helps, I found these tickets using Google site search.

#12 @audrasjb
16 months ago

  • Owner set to audrasjb
  • Status changed from reopened to reviewing

#13 @audrasjb
16 months ago

  • Keywords has-screenshots commit added
  • Status changed from reviewing to accepted

#14 @audrasjb
16 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 55113:

Posts, Post Types: Increase the input field's width in the Slug metabox.

This changeset adds a large-text attribute and removes the size attribute of the text input field located in the Slug metabox. It improves its usability, at least for as long as the Slug metabox is available in the Classic Editor.

Props ABTOP, nacin, helen, sabernhardt, abitofmind, tyxla, audrasjb.
Fixes #16346.

Note: See TracTickets for help on using tickets.