Applying different styles to messages
-
Hello,
I’m applying a different color to some of my messages depending on their content. I add the class “donation-msg” to messages attached to donations and I apply a yellow color to theses messages using the following CSS:
.bm-message.my .bm-message-content:has(.donation-msg) { background: yellow !important; } .bp-messages-wrap .bm-messages-list .bm-list .bm-messages-stack.bm-right-side .bm-content .bm-messages-listing .bm-message .bm-message-content:not(.bm-hide-background):has(.donation-msg) span{ color: black !important; }
Since there has been some changes to the class names, I’m needing to change these for updates.
Are there any hooks that facilitate applying css different messages?
I see there’s a new hook listed on the change log called “better_messages_filter_message_content_overwrite”, but I can’t find it in the code of the latest release.
Thank you.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Applying different styles to messages’ is closed to new replies.