Skip to main content
Answer

how to remove course ID from player

  • March 16, 2022
  • 7 replies
  • 223 views

omer.bitas
Influencer I

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?

Best answer by gstager

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

/** Remove ID from Course **/

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

 

7 replies

gstager
Hero III
Forum|alt.badge.img+8
  • Hero III
  • Answer
  • March 16, 2022

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

/** Remove ID from Course **/

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

 


omer.bitas
Influencer I
  • Author
  • Influencer I
  • March 16, 2022

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,


gstager
Hero III
Forum|alt.badge.img+8
  • Hero III
  • March 16, 2022

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


Daniel
Hero III
Forum|alt.badge.img+3
  • Hero III
  • March 17, 2022

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


Forum|alt.badge.img+1
  • Influencer III
  • November 1, 2023

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

 

 


gstager
Hero III
Forum|alt.badge.img+8
  • Hero III
  • November 2, 2023

@jsalinas - Give this a go

/** Hide course ID on page **/

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

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

 


Forum|alt.badge.img+1
  • Influencer III
  • November 2, 2023

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