Is there any way to set the background colour of a post to any other colour in Flarum?
YourUI_Official Possible, yes, but you'd probably need to target the body CSS class - however, this would then remain the same no matter what post you view (or page). What are you looking to accomplish ?
Thank you very much [deleted] 😃 . Can you please give me an example so, I can know that
YourUI_Official Sure - can you provide a link to your site so I can make sure the CSS I provide will work ?
[deleted] OK. Link
YourUI_Official This should work
Obviously, use the HEX value that you want.
As a point of interest, your site uses colours which make it VERY hard to read.
[deleted] Thank you very much once again. Should I post this in custom css?
YourUI_Official Yes, exactly that.
[deleted] But it changes the flarum theme's background colour
YourUI_Official Exactly - as I pointed out here - https://discuss.flarum.org/d/28533-background-colour-of-a-post-to-any-other-colour/2
[deleted] But isn't there any way that only admin's post colour will change to other colour?
YourUI_Official You can probably change the first poster's background color, but I'm not sure if you can target an admin user without checking
YourUI_Official you need a custom extension for that, as phenomlab say, is not possible with only css
Justoverclock Thanks for your reply, can you tell me which extension to use
YourUI_Official you need to write your own extension for that, or hire someone that can do that for you
Justoverclock Oh! I don't have funds now so can any create it please
YourUI_Official I suggest posting a request discussion using the Resources > Services tag to see if someone can help you. Otherwise I can change the tags on this discussion to help find someone for you that may be interested in helping out.
Prosperous Ya sure, you can change the tags of this discussion
YourUI_Official Done mate. Feel free to update your original post to let people know this is a request. 🙂