Okay
  Public Ticket #1968421
Cannot Change the Filter Text color
Closed

Comments

  • Casimir started the conversation

    I cannot seem to figure out how to change the color of the filter text in my table. It is this horrible gray color right now.

  •  2,572
    Aleksandar replied

    Hello Casimir.

    The properties of filters is different. For example - the text filters (Athlete Name, Event, Enter School and Meet Name) are using placeholders. To change their color, you'd need to add the following CSS to Custom JS and CSS tab, under Custom CSS field (found in main settings of wpDataTables):

    input.form-control.wdt-filter-control.text_filter::-webkit-input-placeholder {
    color: white !important;
    }
    input.form-control.wdt-filter-control.text_filter::-moz-placeholder {
    color: white !important;
    }
    input.form-control.wdt-filter-control.text_filter:-ms-input-placeholder {
    color: white !important;
    }
    input.form-control.wdt-filter-control.text_filter:-moz-placeholder {
    color: white !important;
    }

    The reason for adding this many CSS lines is that the commands are different from browser to browser. You can take a look at this link to read more about this. Also, you can check how different browsers handle placeholders at this link.

    To change the color of drop-down filters, you would need to add this CSS to the Custom CSS field in main settings:

    span.filter-option.pull-left {
        color: white !important;
    }
    

    Please try this and let me know if it helps.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables