Lukas W. Well-known member Feb 25, 2014 #1 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.
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.
P Paul B XenForo moderator Staff member Feb 25, 2014 #2 EXTRA.css doesn't support page conditionals. You will need to use the .forum_list selector. Upvote 0 Downvote
Lukas W. Well-known member Feb 25, 2014 #3 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. Upvote 0 Downvote
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.
P Paul B XenForo moderator Staff member Feb 25, 2014 #4 Include a specific custom css template just in the forum_list template. Upvote 0 Downvote
Lukas W. Well-known member Feb 25, 2014 #5 Not exactly what I hoped for, but as XenForo doesn't support it, this will be the best solution I guess. Thanks! Upvote 0 Downvote
Not exactly what I hoped for, but as XenForo doesn't support it, this will be the best solution I guess. Thanks!