hide field label if :not seamless

Support General hide field label if :not seamlessResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #42827
    Andrew WheelerAndrew Wheeler
    Participant

    hi. am in the process of moving over from ACF. i'm having trouble identifying a css snippet that will display:none the field label only if using the standard wordpress meta box, but not if the field is seamless. I know i can leave the field label blank, but I'm building in Oxygen, and Oxy's repeater can't see the field without a label, so i have to include it, but want to hide it on the single product Edit page - if it's a standard box.

    in ACF i can use ':not(.postbox.acf-postbox.seamless)' but what is it in metabox?

    thanks in advance!

    #42832
    PeterPeter
    Moderator

    Hello,

    In Meta Box, the class is rwmb-seamless. You can use this CSS code for example:

    .postbox:not(.rwmb-seamless) .rwmb-field .rwmb-label {
        display: none;
    }
    #42837
    Andrew WheelerAndrew Wheeler
    Participant

    thanks! that almost got me there. it was
    '.postbox:not(.postbox.rwmb-seamless) .rwmb-field .rwmb-label' for me.

    #42838
    Andrew WheelerAndrew Wheeler
    Participant

    thanks! that almost got me there. it was:
    .postbox:not(.postbox.rwmb-seamless) .rwmb-field .rwmb-label

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.