Different class in messages from correspondents


Home Forums Front End PM PRO Different class in messages from correspondents

This topic is: Resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #7299
    Dominique Baril
    Participant

    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.
    #7327
    Shamim Hasan
    Keymaster

    You want to style different for admin or who started the thread?

    #7411
    Dominique Baril
    Participant

    Hi 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.
    #7440
    Shamim Hasan
    Keymaster

    Some 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.

    #7448
    Dominique Baril
    Participant

    If I’m right, you added the classes

    • fep-message-content-own
    • fep-per-message-own
    • fep-message-content-admin
    • fep-per-message-admin

    That seems great. Can’t wait for the next release

    #43982
    massimo.manca
    Participant

    I need more lessons

    #43991
    Shamim Hasan
    Keymaster

    @massimo-manca you can use these css classes to style message thread differently.
    Let me know if you have any specific questions.

Viewing 7 posts - 1 through 7 (of 7 total)

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.