XF 2.2 Is there a way to hide a widget with extra.less? (Basically hide a widget if a theme is selected)

NandorHUN

Active member
Hi Guys!

I have a pretty good but problematic widget.
Is there any way to hide it if a theme is selected with extra.less ?

Thanks.
 
I don't understand the question.
Sorry I set it up for public navigation condition like this:

(Just an example):

If the user go to "Xbox" subforum there will be an Xbox theme AND in that theme the "Xbox" public navigation form the top will disappeare - since hes already in that node.
To do this I can set up the following condition:

!in_array($xf.style.style_id, [1,2])

But it is only possible for "Basic" Type, there's no diplay condition if I would choose Node or Callback as a type.

Is there a way to do it if I choose them?
 
I still don't understand what you're referring to.

If you want to hide a navigation tab when in a specific forum, just use $xf.reply.containerKey != 'node-1' where 1 is the node ID.
 
Top Bottom