Custom Fields
Support Meta Box Builder CSS classes not displaying

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 5 months, 2 weeks ago.

  • Creator
  • #12818

    I have just installed and purchased Meta Box Builder, and created some simple fields that I want styled with a custom CSS class. I have managed to display the fields on the front end (although I think the documentation on this could be improved, as I bought Meta Box Builder on the premise I wouldn’t need to touch the php files).

    However, the contents of the metaboxes are not displaying with the style of their custom classes. The custom CSS classes are added in the theme itself through Theme options, so I’m wondering if that might be a problem? The only tutorials I can see add the CSS directly in the .php file.

    UPDATE – Adding CSS classes directly into the php file does work, but keen to hear what I might be doing wrong with the Meta Box Builder custom classes field.

Viewing 1 replies (of 1 total)
  • Author
  • #12820

    Anh Tran

    Hi, did you try adding CSS classes to the field via custom attributes? Go to tab Advanced, and add a new attribute, name it “class” and enter value = your custom CSS classes.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.