How to hide div from custom header on some pages?
For example when someone open discussion or admin panel?
I know for php approach(which i do not want to include) and something like if (window.location.pathname == "link") in js, but that works only if link is specified, and not if core of link is changeable(i need to use flarum.com/d/, but i want just /d/).
Is there a way to do this?
///
Btw, this is next style i am working on, so i would like to hear some feedback about how it looks etc, before i release a code. Still work on progress, so there is bugs to be excepted. Header is displaying some info when u are logged in and for guests it display log in etc.
https://style.freeflarum.com/
Thanks.