Skip to:
Content
Pages
Categories
Search
Top
Bottom

My customs styles stopped work


  • miguelcortereal
    Participant

    @miguelcortereal

    On my child theme I have a folder named CSS and inside it buddypress.css with all my custom buddypress styles.

    With 2.1 update this stylesheet is no longer loaded.

    What am I missing here?

Viewing 9 replies - 1 through 9 (of 9 total)

  • Henry Wright
    Moderator

    @henrywright

    Hi @miguelcortereal

    In your child theme directory you should have a file called style.css

    Make sure your custom styles are inside that file.


    Prince Abiola Ogundipe
    Participant

    @naijaping

    @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


    miguelcortereal
    Participant

    @miguelcortereal

    @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?


    danbp
    Participant

    @danbp


    Henry Wright
    Moderator

    @henrywright

    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


    miguelcortereal
    Participant

    @miguelcortereal

    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.


    Henry Wright
    Moderator

    @henrywright

    I’ve opened a ticket to make the core developers aware of the issue.

    https://buddypress.trac.wordpress.org/ticket/5888


    r-a-y
    Keymaster

    @r-a-y

    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.


    miguelcortereal
    Participant

    @miguelcortereal

    @r-a-y

    With that file renaming my styles are back.

    Thanks a lot.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘My customs styles stopped work’ is closed to new replies.
Skip to toolbar