Forums Forums Search & Filter Pro change background when checked checkbox.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #141448

    Hi, thanks for great plugin. I’d like to change background when I checked checkbox.But, I cannot get good results.

    Uncheck a checkbox using CSS

    .searchandfilter li[data-sf-field-input-type=checkbox] label{
    	background: #8B4513;
    	color: white;
    	height: 50px;
    	width: 100%;
    	cursor: pointer; 
    }

    Could you help me?

    Trevor
    #141546

    I think the CSS would be like this:

    .searchandfilter input[type=checkbox]:checked + label {
      background: #8B4513;
      color: white;
      height: 50px;
      width: 100%;
      cursor: pointer; 
    }

    Although you may to fiddle with this to get what you want, as I have not seen your search page to test it on.

    Anonymous
    #141555

    I resolved. Thanks for your perfect answer!

Viewing 3 posts - 1 through 3 (of 3 total)