Discussion Thread

Jump to solution
hsiangju_lien
Community Novice

Hello,

Is there any way to highlight the instructor's name in the discussion thread? So far, I have tried to implement the following JS codes, but it highlights the names of all authors in the discussion page. Any suggestions would be greatly appreciated.

if($.inArray('teacher',ENV['current_user_roles']) === 2 ) {
      $('a.author').css("background-color", "yellow");
}‍‍‍
1 Solution
themidiman
Community Champion

I experimented with this in our test environment:

.author:not(.student_context_card_trigger) {
     background-color:#ffff00;
}

Alas, it will also highlight dropped students too. If only Instructure would give the instructor role author a separate CSS class, or actually even better tag the post itself with a badge of some sort. That would absolve the need to hack the CSS and JS code altogether.

View solution in original post