How to load a css file depending on the current role
Your if check can result of a php notice because not logged in users have no roles and in that case $user->roles[0] will output notice: array offest (in short). Aside from that, have you checked your console network to see if /assets/css/b2bstyle.css was loaded, even if you see status 404 you are in the right … Read more