XF 2.1 how to disable/enable a widget only for one style

🔥Iggy🔥

Well-known member
Licensed customer
hello,
can anyone explain this to me please?

specifically need to hide the media gallery slider for one style.....i thought it should be an easy fix by css at least but the solution escaped me...then of course i got wondering about proper solutions :D

thank you
 
hmm...where would i put it in which template exactly....i am going for "forum list:above nodes"

also i was wondering perhaps something in the display conditions option might be better?
not sure how that would be phrased exactly but something like if style id15, style id 16, etc or such?
 
Each statement does opposite things - Ozzy's will show it in only one style, mine will prevent it showing in only one style.
 
Something like this should work:
Code:
{$xf.visitor.style_id} != 1

Change the 1 to the style you don't want it to display in.

Is it possible two use this for more then one style? For example something like

{$xf.visitor.style_id} != 1, 2 or {$xf.visitor.style_id} != 1 AND 2

Many styles have dark and light themes, this would make it easier.
 
Back
Top Bottom