Best Answer

how to remove course ID from player

  • 16 March 2022
  • 7 replies
  • 176 views

Userlevel 4

HI can anybody advise on removing the ID code from the course player?

Ive tried using 

 

subtitle-block ng-star-inserted {

    display: none !important;

But it did not work. any help?

icon

Best answer by gstager 16 March 2022, 14:22

View original

7 replies

Userlevel 7
Badge +5

Give this a shot and see if it works for you.

/** Remove ID from Course **/

span.subtitle-block.ng-star-inserted {
display: none;
}

 

Userlevel 4

Worked great! thanks a lot!

any tips on how you knew that the span. needs to be included?

we are facing multiple places where we can’t find the right CSS specification to address the changes needed.

 

thanks again,

Userlevel 7
Badge +5

Well, technically, this should work as well…

/** Remove ID from Course **/

.subtitle-block.ng-star-inserted {
display: none;
}

Without  span

What I noticed right away in the example you posted is that the decimals and the closing curly brace were missing which would be a culprit there.

You need a  .  to refer to a class and

a  #  to refer to an ID

Userlevel 7
Badge +3

Thanks for this @gstager. I just applied it to our platform and it does the trick. 

Userlevel 1
Badge

Hi! Is there also a way to remove it from the course overview page - the one they land on and then click enroll?

 

 

Userlevel 7
Badge +5

@jsalinas - Give this a go

/** Hide course ID on page **/

span.course-info.text-grey-mid {
display: none;
}

/** End hide course ID on page **/

 

Userlevel 1
Badge

@gstager Thank you so much! That seemed to work. I really appreciate your help and expertise! ~ Jennifer

Reply