Hi @miguelcortereal
In your child theme directory you should have a file called style.css
Make sure your custom styles are inside that file.
@miguelcortereal, it happened to me too, latest update is overiding the buddypress.css, what you can do is to create another file in your CSS folder where you have buddypress.css, call it my-custom.css, copy over any part you want to amend from buddypress.css to your my-custom.css file, amend it and make sure you end it with ! important.
thats it. you will have your customization back and that way my-custom.css file will be safe even in any future update.
Naijaping
@henrywright
I didn’t see nothing on documentation mentioning that CSS folder was deprecataded neither at 2.1 changelog.
Can you elaborate more on how’s the current BP system to apply custom styles?
I’m not sure that anything has been deprecated? Using the approach I mentioned was just an alternative to how you used to do things, which you indicated wasn’t working post 2.1 upgrade. If the latest update is overriding buddypress.css then this is something that may need a Trac ticket
Thanks a lot for the hints on this but it seems that either I’m missing something or there’s a bug somewhere.
Turns out that When it comes to learn how are things done I always try to RTFM and in this case I did.
Going further, I’ve moved my css folder containing buddypress.css file to buddypress folder at my child theme as alternative option given at documentation (https://codex.buddypress.org/themes/theme-compatibility-1-7/add-buddypress-styles-to-a-theme/) and no way to have it working.
I’ve opened a ticket to make the core developers aware of the issue.
https://buddypress.trac.wordpress.org/ticket/5888
Thanks for the report everyone.
As an interim fix, try renaming your CSS to 'buddypress.min.css'
for now. When we moved our CSS generation tools over to Grunt and to support SCRIPT_DEBUG
, this had the side-effect of needing to rename some files.
Keep your eye on the ticket that henry.wright linked to though.
@r-a-y
With that file renaming my styles are back.
Thanks a lot.