Skip to main content
Best Answer

CSS to remove upload doesn't seem to work

  • January 4, 2024
  • 7 replies
  • 64 views

I tried the remedy suggested here: https://community.docebo.com/html%2Dcss%2D49/hide%2Dassignment%2Dsubmission%2Dscreen%2Doptions%2D325 for a specific course but it doesn’t work. 

 

Any suggestions?

Best answer by Bfarkas

I outlined how to hide in the new player in this thread:

If you want to make it course specific, you need to add ‘.lrn-course-player-<COURSE NUMBER>’ before it. So for example, to just hide the file upload on course 132 it would be:

.lrn-course-player-132 .dcb-te-player-assignment-button-wrapper:has([data-dcb-ui-described-by="dcb-te-player-assignment-upload-options-0-upload-button-details"]) {
display: none;
}

 

7 replies

lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • January 4, 2024

are you trying to apply it to the new course player? We may need new CSS for that.


  • Author
  • Novice II
  • January 4, 2024

Honestly I don’t know! How can I tell? 


lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • January 4, 2024

if you are a superadmin, go to Configuration and Branding (from the root only) and you will see something like this. If it says “enter the preview mode” then it’s not on for you (or the full site)

 


  • Author
  • Novice II
  • January 5, 2024

Oh dear. I can see exactly that. 

 

Which  clever person can we ask for an up to date CSS?

 

Thanks


lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • January 5, 2024

Pulling on my best CSS guru @gstager who always comes through...no pressure! LOL


gstager
Hero III
Forum|alt.badge.img+8
  • Hero III
  • January 5, 2024

@kenamillard - when you used the suggestion from the link you posted - did you use 312 as the ID or did you change it?


Bfarkas
Hero III
Forum|alt.badge.img+6
  • Hero III
  • Answer
  • January 17, 2024

I outlined how to hide in the new player in this thread:

If you want to make it course specific, you need to add ‘.lrn-course-player-<COURSE NUMBER>’ before it. So for example, to just hide the file upload on course 132 it would be:

.lrn-course-player-132 .dcb-te-player-assignment-button-wrapper:has([data-dcb-ui-described-by="dcb-te-player-assignment-upload-options-0-upload-button-details"]) {
display: none;
}