• I’m currently slotting together a custom meta box and I was just wondering two things…

    1. Is there an official WordPress style guide stating how the HTML contents of a meta box should be presented? e.g. the HTML structure and CSS classes that should be used.

    2. Are there plans to introduce a Meta Box API into the core, as has already been done with the Settings API?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey Ryan, I’m just about to throw together a meta box here and was wondering the same thing. Had you found much of an answer?

    Thread Starter scarekrow76

    (@scarekrow76)

    Hi. No, I haven’t found any guidelines yet – although, I must admit, I haven’t looked lately.

    My approach has been to view the source HTML for admin pages and follow the structure of the core metaboxes as closely as I can. I like to make mine as vanilla as possible, so that they look just like the pre-existing boxes.

    Pages like this and this can be useful for reference, but it would be nice to have some ‘official’ guidelines.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Styling Meta Boxes’ is closed to new replies.