XF 1.2 Find value of enableSearch within CSS template


Active member
Hello all.
Was wondering if there is a way to wrap some css in a condition that checks to see whether the search engine is enabled or not.

I am aware that the #navigation div is assigned a class of "withSearch" when the search engine is enabled. However, being able to wrap my css in a condition would be loads neater and more concise.

Thanks in advance!


XenForo moderator
Staff member
For future reference, if you have debug mode enabled, hover or click on the spanner icon for the option and it gives you the ID.