Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Well.. really so much work, to just change some bg color? bp 1.7

  • @grayson_marik

    Participant

    Well, long story short, I have my page running with a dark theme. Unfortunatley in bp messages, the background color is white – as is the font color.

    Such is of course not good for readability 🙂

    So I wanted to change this background color.

    All I want to change is this :

    div#message-thread div.alt {

    background: #ffffff;

    }

    Do I really have to create a custom theme for that?

    Or is there any more streight forward way to do it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • @bphelp

    Participant

    Just make a child theme it is really simple:
    https://codex.buddypress.org/legacy/building-a-buddypress-child-theme/
    If you make changes directly to your theme it will get overwritten upon updating.

    @bphelp

    Participant

    Or you could create a bp-custom.php which you place in your-site/wp-content/plugins
    See:
    https://codex.buddypress.org/developer/customizing/bp-custom-php/
    And add this code:
    http://pastebin.com/t9LybbQC
    This is assuming you correctly targeted the element you want to change.

    @grayson_marik

    Participant

    Wow, that was rather simple, albait I expected it rather to look for something like a “bp-custom.css” to simply overwrite the styles from the default theme, as a “most easy way to tweak stuff”.

    I had tryed to do it with a child theme first, but could not get it to work properly so you helped me a lot by setting me right to the starting line.

    Thank you!

    @bphelp

    Participant

    @grayson_marik
    Glad I could assist you! 🙂

    @bphelp

    Participant

    JFYI If you change themes at any point you will have to make sure that the targeted CSS is the same, if not you will need to re-adjust the CSS selector in the code provided.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Well.. really so much work, to just change some bg color? bp 1.7’ is closed to new replies.
Skip to toolbar