Color Specific To A Value - Question | JoomShaper

is live, now with multi-currency selling.

Color Specific To A Value

TD

TOCHTERMANN DAMIEN

SP Page Builder 1 week ago

Hello,

In the website i work actually on , i have a status field (dynamic field). How to change color of text depending on that value ? Thanks ( for example, : "started" in green, "work in progress" in yellow etc...

0
9 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #233497

Hi there,

Thank you for your question. Right now there is no feature to do it. This can be achieved by using custom CSS based on the value of the status field.

Best regards,

Toufiqur Rahman (Team Lead, Support)

0
TD
TOCHTERMANN DAMIEN
Accepted Answer
1 week ago #233498

do you have an example of css for this ? i just have 2 values in this website ( "In progress" / "Finalized").

Thanks

PS : would be welcome to be able to custom this.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #233505

Share both url

0
TD
TOCHTERMANN DAMIEN
Accepted Answer
1 week ago #233509

French values are "En cours" and "Terminé" ( field eStatut") in Projets (Dynamic field)

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #233515

Use this css code inside the custom.css file.

https://prnt.sc/sTFc7ZxSQ_cF

.sppb-addon-dynamic-content-filter-item-checkbox-option:nth-child(1) {
  --item-color: #ff3b30;
}

.sppb-addon-dynamic-content-filter-item-checkbox-option:nth-child(2) {
  --item-color: #28a745;
}

.sppb-addon-dynamic-content-filter-item-checkbox-option
.sppb-addon-dynamic-content-filter-fake-checkbox-input {
  border: 2px solid var(--item-color) !important;
}


.sppb-addon-dynamic-content-filter-item-checkbox-option
input:checked + .sppb-addon-dynamic-content-filter-fake-checkbox-input {
  background-color: var(--item-color) !important;
}


.sppb-addon-dynamic-content-filter-item-checkbox-option
input:checked + .sppb-addon-dynamic-content-filter-fake-checkbox-input i {
  display: block !important;
  color: #fff !important;
}

.sppb-addon-dynamic-content-filter-item-checkbox-option > label {
  color: var(--item-color);
}
0
TD
TOCHTERMANN DAMIEN
Accepted Answer
1 week ago #233517

Sorry i forgot to mention... not on filtters but on values from items (list view and detail view)

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 6 days ago #233578

Did you change login credential?

0
TD
TOCHTERMANN DAMIEN
Accepted Answer
6 days ago #233620

no

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 6 days ago #233639

Added custom javascript and css code.

https://prnt.sc/iz3sOYDtC_vN

0