css independence in buddypress
-
Hi, (My second post in an hour, apologies if that’s too much!)
I’m a developer just starting out on my first BuddyPress project. Really excited about it- after researching for a few weeks and trying out other solutions I determined BuddyPress was definitely the right way to go for creating a social network.
I’m currently trying to adapt the bp-legacy templates to a Bootstrap-based theme. I’d really like to rely purely on the bootstrap css and not load any buddypress css. But some of the buddypress functions include css class names. I have been converting them to accept arguments but I really don’t want to update the buddypress core files.
For example:
from: function bp_get_options_nav() {…}
to: function bp_get_options_nav($css_selected_class = “current selected”) {…}from: function bp_get_displayed_user_nav() {…}
to: function bp_get_displayed_user_nav($css_selected_class = “current selected”) {…}It could be taken farther to include the html tags to use, but for now I just use the standard unordered lists.
Is there a better way other than modifying the buddypress core files? Or should I just give in and make CSS classes to fit buddypress?
(WordPress 3.5.1, BuddyPress 1.7.2)
- The topic ‘css independence in buddypress’ is closed to new replies.