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

Iggy

Well-known member
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
 

Brogan

XenForo moderator
Staff member
You can set the widget to have no position and manually call it in the templates using:
HTML:
<xf:widget key="widget_key" />

So the reverse of what you are trying to do, but the result will be the same.
 

Iggy

Well-known member
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?
 

Brogan

XenForo moderator
Staff member
Each statement does opposite things - Ozzy's will show it in only one style, mine will prevent it showing in only one style.
 

Iggy

Well-known member
its good to know both, we have sort of alot of styles so its better for us to prevent the one....but maybe another time the other will be better :)
 
Top