Help Center

Powered by Minitek FAQ Book
Loading...

Detail box background color depending on Tag/Categorie

KR
Koen RottierPosted 7 months ago
Minitek Wall Pro - Professional Subscription

Is it possible to set the "Detail box background" to a differetn color depending on the tag or categorie?

Tag: News is RED

Tag: Info is BLUE

 

Ευχαριστώ, 

 

Koen

Loading...
0
#4027

4 answers

M
MinitekPosted 7 months agoModerator

Hi Koen,

This is not possible via the widget parameters, but you can use some custom css code like the following:

#mwall_items_WIDGET_ID .cat-CAT_NAME .mwall-item-inner {
  background-color: red;
}

In the above code, replace WIDGET_ID with the actual widget id, and CAT_NAME with the category name.

For example:

#mwall_items_2 .cat-Action .mwall-item-inner {
  background-color: red;
}
KR
Koen RottierPosted 7 months ago

Thanks a lot... Does it work with tag's also?

 

Koen

M
MinitekPosted 7 months agoModerator

You're welcome.

Yes, you can use it for tags also:

#mwall_items_WIDGET_ID .tag-TAG_NAME .mwall-item-inner {
  background-color: red;
}

Just make sure you are using the correct names for Categories and Tags. For example, the first character should be capitalized.

KR
Koen RottierPosted 7 months ago

Thanks... Try it tomorrow...

 

Koen