Custom Fields
Support General Custom CSS class on meta box

This topic contains 2 replies, has 2 voices, and was last updated by  Ryan Lauritsen 1 month ago.

  • Creator
  • #15372
    Ryan Lauritsen

    Is it possible to add a custom CSS class to a meta box?
    Or have it auto-generate a unique CSS class or ID from the meta box ID?

    I tried adding a class and a custom data-* attribute via custom attributes on a meta box but that doesn’t seem to work.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #15382

    Anh Tran

    Hi Ryan,

    There’s no support for meta box CSS class. But each meta box will have a auto-generated ID. You can inspect and see it.


    Ryan Lauritsen

    I see the auto-generated IDs on post type meta boxes in the admin but not on frontend forms (Frontend Submission extension). The auto-generated ID does not work on user meta boxes either in the admin or on frontend (User Profile extension).

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

You must be logged in to reply to this topic.