Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,018
- How-to & Troubleshooting
- 129,639
- Creating & Extending
- 25,793
- Requests & Feedback
- 9,497
- Third Party Plugins
- 9,791
- Showcase
- 3,316
- Ideas
- 1,382
- Miscellaneous
- 9,179
-
Thanks 21cdb, the magical “plugins_loaded” is what I need to know!
—
About your problem, maybe try using the boolean $doing_admin_bar that you’re using and use and if-else statement to call the custom CSS only when it is true in your my_admin_bar_css() function?