Jump to content

Different post highlight colours for different groups


Recommended Posts

  • 2 weeks later...

I think it can be done quite easily.

Edit the postContainer template.

Find "<article" on the same line add after "data-Background =" {$ comment-> author () -> member_group_id}"

<article data-Background="{$comment->author()->member_group_id}" [.....]

Now in custom.css add:

/* Background for the group with ID 4. */
article[data-background="4"].cPost {
    background: #62c4aa;

/* Background for the group with ID 3. */
article[data-background="3"].cPost {
    background: #62a0c4;

Change the group ID to your own and customize the background.



Edited by SeNioR-
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...