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.

Previews:

123.thumb.png.775c402e8162732acaf9b63dad5e6dc4.png

Edited by SeNioR-
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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