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

XF 1.2 Check current page

Discussion in 'Styling and Customization Questions' started by katsulynx, Feb 25, 2014.

  1. katsulynx

    katsulynx Well-Known Member

    Is there a way to do an if-check if we're on the current page? I want to put all my CSS-Code in the Extra.css file but still want to limit some css-code to e.g. the Forum List only, as it will be a lot of code.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    EXTRA.css doesn't support page conditionals.

    You will need to use the .forum_list selector.
     
  3. katsulynx

    katsulynx Well-Known Member

    Selecting the elements is not really the problem, it's more about not sending the user unnecessary CSS code he doesn't need on the current page.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Include a specific custom css template just in the forum_list template.
     
    katsulynx likes this.
  5. katsulynx

    katsulynx Well-Known Member

    Not exactly what I hoped for, but as XenForo doesn't support it, this will be the best solution I guess. Thanks!
     

Share This Page