Home › Forums › Front End PM PRO › Different class in messages from correspondents
- This topic has 6 replies, 3 voices, and was last updated 4 years ago by Shamim Hasan.
- AuthorPosts
- October 25, 2017 at 5:19 am #7299Dominique BarilParticipant
Hi,
I would like to style differently the messages written by the user and the ones written by the correspondents (see attachment). If I’m right, currently there’s only the possibility to style the class fep-message-content. Is there a snippet I could use to give a different class for messages?
Thank you
Attachments:You must be logged in to view attached files.October 25, 2017 at 10:11 am #7327Shamim HasanKeymasterYou want to style different for admin or who started the thread?
October 26, 2017 at 11:01 pm #7411Dominique BarilParticipantHi Shamim.
I want to style differently the messages of the current user from the ones of his correspondent(s). The idea is to, replicate the UX of the major chat apps to give some point of reference to our users so they quickly understand the UI of Front End PM. As you can see in the attachment, it’s kind of a standard to style differently the messages.
Thanks
Attachments:You must be logged in to view attached files.October 27, 2017 at 2:58 pm #7440Shamim HasanKeymasterSome classes are added. Please see https://github.com/shamim2883/front-end-pm/commit/8dc386cafb1b8c6b6a1b38ce3ce0e76fbfbc92e5 and let me know if you think any more classes needed.
October 27, 2017 at 9:13 pm #7448Dominique BarilParticipantIf I’m right, you added the classes
• fep-message-content-own
• fep-per-message-own
• fep-message-content-admin
• fep-per-message-adminThat seems great. Can’t wait for the next release
November 30, 2021 at 2:48 pm #43982massimo.mancaParticipantI need more lessons
December 4, 2021 at 11:41 am #43991Shamim HasanKeymaster@massimo-manca you can use these css classes to style message thread differently.
Let me know if you have any specific questions. - AuthorPosts
You need to purchase ‘Front End PM PRO’ to create topic in this support forum.
If you already purchased ‘Front End PM PRO’ please LOGIN.