Skip to main content
StickyBest Answer

Changing the "whoops" page image via CSS


dr.reinhardt
Contributor II
Forum|alt.badge.img

Hello Community!

Does someone know how to change this picture? 

Thanks!

 

Best answer by nick.tosto

Hey @dr.reinhardt , this is possible with CSS. The idea is that you hide the image of the person and then set a background image on the image container element. The resulting CSS looks something like this:

 

/*Replace Kneeling Person with custom image */
doc-widget-channels ui-illustration.ui-illustration,doc-widget-course-catalog ui-illustration.ui-illustration, doc-widget-my-courses-and-learning-plans  ui-illustration.ui-illustration{
    background: url(https://pics.clipartpng.com/midle/Cat_PNG_Clip_Art-2690.png) no-repeat center;
    background-size: contain;
}
doc-widget-channels ui-illustration.ui-illustration svg,doc-widget-course-catalog ui-illustration.ui-illustration svg, doc-widget-my-courses-and-learning-plans  ui-illustration.ui-illustration svg{
    visibility: hidden;
}

 

Unless you like the image I chose, the only thing you would have to change is the image URL inside the parentheses on the background: url() part. You can get the image from somewhere online or you can use Docebo to host the image as well.

 

The CSS should be added in the Custom Styles area under Configure Branding and Look.

 

Hope this helps!

View original
Did this post help you find an answer to your question?

37 replies

lrnlab
Hero III
Forum|alt.badge.img+8
  • Hero III
  • 4805 replies
  • November 17, 2021

HI @dr.reinhardt not sure admins can change this...you can adjust the text via Localization though. You may be able to hide it all together using CSS


Annarose.Peterson
Hero III
Forum|alt.badge.img+6

I feel like this should be added as an idea!! 


dr.reinhardt
Contributor II
Forum|alt.badge.img
  • Author
  • Contributor II
  • 16 replies
  • November 17, 2021

Thank you @lrnlab. My knowledge of CSS is less than 0 🤪. I will need some help from programmers I guess. I agree with @Annarose.Peterson; I’ll add it as an idea.


Forum|alt.badge.img+2
  • Docebian
  • 66 replies
  • Answer
  • November 17, 2021

Hey @dr.reinhardt , this is possible with CSS. The idea is that you hide the image of the person and then set a background image on the image container element. The resulting CSS looks something like this:

 

/*Replace Kneeling Person with custom image */
doc-widget-channels ui-illustration.ui-illustration,doc-widget-course-catalog ui-illustration.ui-illustration, doc-widget-my-courses-and-learning-plans  ui-illustration.ui-illustration{
    background: url(https://pics.clipartpng.com/midle/Cat_PNG_Clip_Art-2690.png) no-repeat center;
    background-size: contain;
}
doc-widget-channels ui-illustration.ui-illustration svg,doc-widget-course-catalog ui-illustration.ui-illustration svg, doc-widget-my-courses-and-learning-plans  ui-illustration.ui-illustration svg{
    visibility: hidden;
}

 

Unless you like the image I chose, the only thing you would have to change is the image URL inside the parentheses on the background: url() part. You can get the image from somewhere online or you can use Docebo to host the image as well.

 

The CSS should be added in the Custom Styles area under Configure Branding and Look.

 

Hope this helps!


dr.reinhardt
Contributor II
Forum|alt.badge.img
  • Author
  • Contributor II
  • 16 replies
  • November 17, 2021

Wow! Thank you so much @nick.tosto! I will try this right away. I really appreciate you taking the time to answer. I’ll let you know if I succeed :)


Annarose.Peterson
Hero III
Forum|alt.badge.img+6

@nick.tosto thank you for sharing!!  Totally using this code, and I’m going to beg the team to keep that image you used. 

:cat2::cat:


dr.reinhardt
Contributor II
Forum|alt.badge.img
  • Author
  • Contributor II
  • 16 replies
  • November 19, 2021

@nick.tosto  I copied and pasted and it works perfectly. Now, let’s say I have an image in my computer that I want to use, I would i embed that in instead of a URL link? Sorry, maybe it’s obvious, but I really havo no knowledge of CSS or programming :)


Forum|alt.badge.img+2
  • Docebian
  • 66 replies
  • November 19, 2021
dr.reinhardt wrote:

@nick.tosto  I copied and pasted and it works perfectly. Now, let’s say I have an image in my computer that I want to use, I would i embed that in instead of a URL link? Sorry, maybe it’s obvious, but I really havo no knowledge of CSS or programming :)

 @dr.reinhardt if you have an image on your computer you want to use, you’ll want to first upload it to Docebo, and then Docebo will give you the URL where it’s hosted and you can use that in your CSS. The link I shared towards the end of my first post shows how you can use an HTML widget on a widget page to upload the image and grab the URL.

Let me know if you have any trouble!


dr.reinhardt
Contributor II
Forum|alt.badge.img
  • Author
  • Contributor II
  • 16 replies
  • November 19, 2021

@nick.tosto Once again, thank you so much. Worked out perfectly! I really appreciate your help.

 



 


sigamoline
Helper II
Forum|alt.badge.img+1
  • Helper II
  • 69 replies
  • March 29, 2022

@nick.tosto I love the image you chose! Thanks for sharing.


  • Newcomer
  • 1 reply
  • June 30, 2022

 

This was very helpful. I found where to update the text as well under Localization via Edit and searching for “Whoops”. Thanks for all the tips.


lrnlab
Hero III
Forum|alt.badge.img+8
  • Hero III
  • 4805 replies
  • June 30, 2022
j.ceccato wrote:

 

This was very helpful. I found where to update the text as well under Localization via Edit and searching for “Whoops”. Thanks for all the tips.

in the localization app, open the English language and then search for “whoops”...there are many so be careful when changing these and test, test, test...if you have a sandbox, I highly recommend you make your changes there first.

 


Forum|alt.badge.img
  • Helper I
  • 40 replies
  • July 26, 2022

Awesome! I accidentally stumbled across this. Great suggestions.

@nick.tosto - I tried it out and it works perfect for the desktop. Any suggestions for the mobile application?


lrodman
Guide II
Forum|alt.badge.img+6
  • Guide II
  • 908 replies
  • August 2, 2022

Very cool! Could the replacement be a SVG @nick.tosto ?

 

You won’t be able to change this on mobile apps @mlubenski but maybe Docebo will add the white label/branding option in the future I hope! Add it to Ideas, it’d get MY vote!


sabine.deliveroo
Influencer I
Forum|alt.badge.img+1

Hey @nick.tosto  , thanks so much for this! Do you know how to change the Whoops text itself below the image? 😊


lrodman
Guide II
Forum|alt.badge.img+6
  • Guide II
  • 908 replies
  • October 11, 2022

 

sabine.deliveroo wrote:

Hey @nick.tosto  , thanks so much for this! Do you know how to change the Whoops text itself below the image? 😊

https://in.leadingre.com/legacy/admin/index.php%3Fr%3DlangManagement/translateLang%26langcode%3Denglish

 

replace in.leadingre.com with yourcompany.docebosaas.com

 

This localization page is MONEY


  • Novice II
  • 8 replies
  • October 24, 2022

I tried but didn’t work for me.


lrodman
Guide II
Forum|alt.badge.img+6
  • Guide II
  • 908 replies
  • October 25, 2022
hsingh wrote:

I tried but didn’t work for me.

Tried which - the css? Localization? Both?

 

happy to help!


  • Novice II
  • 8 replies
  • October 25, 2022

Tried the CSS. It didn’t replace the image at all.

Just for reference: I am trying to change image for Course and LP widget.

Localization worked perfectly!


Bfarkas
Hero III
Forum|alt.badge.img+5
  • Hero III
  • 3582 replies
  • October 25, 2022
hsingh wrote:

Tried the CSS. It didn’t replace the image at all.

Just for reference: I am trying to change image for Course and LP widget.

Localization worked perfectly!

Can you share a screenshot of what you did in the CSS Customization area? Might help troubleshoot as just tried and this is still working for me.


lrodman
Guide II
Forum|alt.badge.img+6
  • Guide II
  • 908 replies
  • October 25, 2022

Still working for me too.


Scott Foster
Influencer III
Forum|alt.badge.img
  • Influencer III
  • 65 replies
  • June 9, 2023

There are other images other than the woman kneeling. There is one of a person riding a scooter, and this image. Will this CSS replace all 3 images?


Scott Foster
Influencer III
Forum|alt.badge.img
  • Influencer III
  • 65 replies
  • June 9, 2023
Scott Foster wrote:

There are other images other than the woman kneeling. There is one of a person riding a scooter, and this image. Will this CSS replace all 3 images?

 


julientrudel
Influencer II
Forum|alt.badge.img+2
  • Influencer II
  • 28 replies
  • September 22, 2023

Hello it doesn’t seems to work for me this is how i am trying to do this:

Hope someone can help!

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings