WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] CSS question about "for" elements and classes (2 posts)

  1. sharris203
    Member
    Posted 4 years ago #

    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; }

  2. Mark / t31os
    Moderator
    Posted 4 years ago #

    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 */ }

    or

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags