Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: What is the correct way to alter the admin-bar.css


r-a-y
Keymaster

@r-a-y

21cdb, looking forward to your solution for removing the original admin-bar.css file!

Re: your problem… you could potentially solve your problem by adding a CSS class to the body when you’re logged in or not, and then declaring a CSS override for the body.

In your BP member theme, add the following to your <body> tag:

<body<?php if (!is_user_logged_in() ) echo ' class="non-login"'; ?>>

Then, at the bottom of your my-admin-bar.css,:

body.non-login {padding-top:0 !important;}

This is untested… but in theory, this should work.

Let me know how it goes!

Skip to toolbar