Making WordPress.org

Opened 7 years ago

Closed 7 years ago

#3193 closed enhancement (fixed)

Restyle Developer Hub callout in the Codex

Reported by: melchoyce's profile melchoyce Owned by:
Milestone: Priority: normal
Component: Codex Keywords:
Cc:

Description

The "Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!" callout in the Codex is using a pretty gnarly looking icon (on high resolution screens) and random styles. Let's grab the notice notice-info notice-alt classes from core to restyle this message. See attached mockup.

Attachments (1)

codex-notice.png (504.7 KB) - added by melchoyce 7 years ago.

Download all attachments as: .zip

Change History (2)

#1 @SergeyBiryukov
7 years ago

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

https://codex.wordpress.org/Template:mbox is the template for the notice. I've updated it to use notice-info styles and the info dashicon.

Looks like https://codex.wordpress.org/MediaWiki:Sitenotice is the only page using it, and Ambox_notice.png was the only icon being used. The icon is passed to the template via the image parameter. Maybe it would be cleaner to pass the dashicon class in the same way, but I don't have access to edit MediaWiki:Sitenotice, and given that no other pages use the template, I think it's fine as is.

Note: See TracTickets for help on using tickets.