Skip to main content

How to hide the pop-over completion message for HTML content

  • July 30, 2021
  • 13 replies
  • 312 views

elamast
Hero I
Forum|alt.badge.img+7

If you’re using the HTML training material type and really want to get rid of that instantaneous pop-over saying the activity is completed, here’s some CSS code to hide it:

 

/*Hide pop-over completion message for HTML content*/
div.intime-completed.ng-star-inserted > div {

    display: none !important;

}

 

The activity will still be marked completed everywhere it needs to be.  This just prevents the pop-over message from displaying.

13 replies

lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • July 30, 2021

HI @elamast thanks for adding this...we should have this post in our new discussion group, HTML & CSS where we are gathering all similar types of posts...perhaps @Adam Ballhaussen can move this over for you?


Adam Ballhaussen
Guide III
Forum|alt.badge.img+7

This is awesome @elamast, thank you for sharing! @lrnlab good call. I’ve moved this to the HTML & CSS discussion category


lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • July 30, 2021

This is awesome @elamast, thank you for sharing! @lrnlab good call. I’ve moved this to the HTML & CSS discussion category

many thanks Adam...


JZenker
Guide II
Forum|alt.badge.img+2
  • Guide II
  • August 31, 2023

You are the man! thank you!

 


  • Novice III
  • September 23, 2024

Hi all, has anyone needed to update this for the new course player and been successful?


elamast
Hero I
Forum|alt.badge.img+7
  • Author
  • Hero I
  • September 23, 2024

This code does not seem to work now for either player.  I’ll do some digging and see if I can find another way.


lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • September 23, 2024

@elamast something changed a few months ago s they started re-appearing...I’m must living with it now...appreciate you looking in to this. thank you.


JZenker
Guide II
Forum|alt.badge.img+2
  • Guide II
  • September 24, 2024

Looks like the element is part of the .zmdi class now which is shared with other attributes - like the circle buttons throughout the site. If we hide that .zmdi class, it’ll hide the images in the circle buttons


elamast
Hero I
Forum|alt.badge.img+7
  • Author
  • Hero I
  • September 24, 2024

Just a hunch, if you need this right away it might require unsupported scripting to solve. I’m envisioning a function that watches every x milliseconds for this div to be inserted and dynamically changes it.

What I did observe was that the .intime-completed class is not in the code at all until a triggering event (choosing the html training material) causes it to be inserted.  This may be the crux of the problem.

If we want a supported solution, I recommend waiting until after 9/30 and then requesting a new feature that allows this completion pop-over to be hidden by checking a checkbox in the properties.  


Forum|alt.badge.img+2
  • Novice II
  • September 25, 2024

Hi there

Give the following CSS a go. Have tested this with a Video and HTML training material in the same course but could do with further testing on this.

body:has(lrn-training-material-player-html) .ui-notification-toast-success {
display: none!important
}

 


elamast
Hero I
Forum|alt.badge.img+7
  • Author
  • Hero I
  • September 25, 2024

Hi there

Give the following CSS a go. Have tested this with a Video and HTML training material in the same course but could do with further testing on this.

body:has(lrn-training-material-player-html) .ui-notification-toast-success {
display: none!important
}

 

Didn’t work for me, but will do more testing.


  • Novice II
  • October 11, 2024

Hello all,

Please test the following CSS in your Sandbox first.

I was trying to figure out a way to remove the Completion banner all together from the HTML Page training material, with no luck. But I was able to remove everything inside if you all want to try the following CSS. 

/*removes completion banner title & description*/

.dcb-ui-notification-content {

  display: none !important;

}

/* removes buttons */

.dcb-ui-notification-actions {

   display: none !important;

}

/*removes check mark icon*/

.dcb-ui-icon-size-xs {

  display: none !important;

}

 

 


  • Novice II
  • October 11, 2024

When I moved the previous post CSS the Sandbox to Production the check mark icon wasn’t hidden. I found a new CSS function to remove the check circle. Here is the updated CSS:

/*removes completion banner title & description*/

.dcb-ui-notification-content {

  display: none !important;

}

/* removes buttons */

.dcb-ui-notification-actions {

   display: none !important;

}

/*removes check mark icon */

dcb-ui-notification[iconsvgname="check_circle"] dcb-ui-icon {

  display: none;

}