I wanted to change checkbox color in multiple catalog 'once' on a portal view. Client script needed

askari125
Tera Contributor

I wanted to change checkbox background color when it is checked in multiple catalog but want to change it 'once' on a portal view.

 

Client script needed which is used once to change the color of all catalog item checkbox color once.

 

Thank you.

Kind Regards

1 REPLY 1

Jan Cernocky
Tera Guru

Hi askari,

not sure what you want to achieve here. Do I understand well that if you are on portal if you check the box it changes background color? If you want to do it for all catalog items, you can edit the SC Catalog Item widget instance and add there CSS, for example to change it to red:

 

.type-boolean label input[type="checkbox"]:checked ~ span:before {
   background: #f00;
}

 

 it looks like this

JanCernocky_0-1670354847676.png