Support » Fixing WordPress » CSS question about “for” elements and classes

  • Resolved sharris203


    This question has many uses. But specifically, I’m trying to hide the “Track/Pingback” checkbox for discussions on the post/page editor. Part of the code is:

    <label class="selectit" for="ping_status">

    I know a bit of CSS, but how do i reference the part where it says for="ping_status"? I plan to hide it using some form of this code:

    label.selectit { display: none; }

Viewing 1 replies (of 1 total)
  • Will only work for browsers that support the selector (ie. not older IE versions, etc), but this should work..

    label.selectit[for="ping_status"] { /* CSS */ }


    label[for="ping_status"] { /* CSS */ }

Viewing 1 replies (of 1 total)
  • The topic ‘CSS question about “for” elements and classes’ is closed to new replies.