1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Find value of enableSearch within CSS template

Discussion in 'Styling and Customization Questions' started by brstrm, Jan 10, 2014.

  1. brstrm

    brstrm 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!
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Try <xen:if is="{$xenOptions.enableSearch}>
     
    brstrm likes this.
  3. brstrm

    brstrm Active Member

    Magnificent. This has made my task much, much simpler. Thanks as always!
     
  4. Brogan

    Brogan 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.
     
    brstrm likes this.

Share This Page