Make WordPress Core

Opened 2 months ago

Closed 2 months ago

#65056 closed defect (bug) (invalid)

The first letter of the labels is always capitalized instead of being written as it is

Reported by: devede's profile devede Owned by:
Milestone: Priority: normal
Severity: minor Version:
Component: General Keywords:
Focuses: Cc:

Description

In the widget, the first letter of the labels is always capitalized, instead of being written as is.

Attachments (2)

Capture d’écran du 2026-04-02 09-44-46.png (21.7 KB) - added by devede 2 months ago.
Labels in widget
Capture d’écran du 2026-04-02 09-44-29.png (16.9 KB) - added by devede 2 months ago.
labels in bottom of articles

Download all attachments as: .zip

Change History (5)

@devede
2 months ago

labels in bottom of articles

#1 @devede
2 months ago

Sorry, the text of my bugreport is wrong.
In the widget, the first letter of the labels is being written as is but at the bottom of each article, the first letter of the labels is always capitalized, instead of being written as is.

#2 @sabernhardt
2 months ago

Which theme do you use?

I suspect your theme has a CSS rule like this in the tags list:
text-transform: capitalize;

#3 @sabernhardt
2 months ago

  • Component changed from Widgets to General
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 6.9.4 deleted

I found that you already answered my question on the support forums: the Nisarg theme.

That has text-transform: capitalize for .tags-links a and other elements.

If you want to continue using the theme, you can override its capitalize rules by adding this in the Customizer under Additional CSS:

.site-description,
.entry-meta,
.entry-meta a,
.byline,
.cat-links a,
.tags-links a,
.archive-page-title,
.nav-previous,
.nav-next,
.next-post,
.prev-post,
#infinite-handle span button, 
#infinite-handle span button:hover, 
#infinite-handle span button:focus {
  text-transform: none;
}

I'll close the ticket because this is not a bug in WordPress core.

Note: See TracTickets for help on using tickets.