Skip to main content



 

The widget on the left is a slide from a Google Slides deck. 

 

The following is a guide that shows how you can embed a google slide within a custom page that you can use for a variety of uses cases. The advantage of this over custom html and css is that people who don’t have admin access to Docebo can update the slide making it a great solution for teams that need to communicate through the LMS but who don’t require super admin privileges.
 

💡 Scope Warning!

This guide is created to specifically replicate the widget and positioning within the screenshot at the top. Future versions of this guide will provide guidance on customizations and different dimensions but for the time being it will be limited to the above layout and format. 

The good news is that i’ve provided two versions of instructions:

  • A fixed size version
  • A mobile responsive version that adjusts with the browser size.

 

📋 Step-by-Step Guide

Pre-requisites

  • A Google Slide link you intend to embed.
  • Admin access to your Docebo Learn LMS account.
  • Previous experience building a custom page in Docebo

🎯 Fixed Dimensions Google Slide

 


The steps below will create a fixed slide with fixed dimensions. For a mobile responsive version scroll to the end. 

 

Step 1: Adjusting the Slide Size in Google Slides

​​​​​​

In order for the slide to fit within the two column row layout you’ll need to change the dimensions of the slide page layout. 
 

Open your Google Slides and click on File ➡️ Page Setup


 

Click the drop down box and choose Custom

 

Next click the other drop down and choose Pixels and enter the values from the screenshot.

Step 2: Obtain Google Slides Embed Code

  1. Open your Google Slides and click on File ➡️ Share ➡️Publish to the web...
  2. Navigate to the Embed tab and click on the Publish button.
  3. Copy the url portion highlighted below 

Step 3: Formatting the HTML Template

Below is an html template for embedding (technically we’re creating an iframe) of the google slide.

 

<center>
<div class="employeepageembed" style="width:660px; height:400px; overflow:hidden;">
<iframe src="pTHE EMBED URL YOU GRABBED ABOVE GOES HERE -REMOVE THE BRACKETS]start=false&amp;loop=false&amp;delayms=3000&amp;rm=minimal"
style="border:0px #000000 solid;"
name="myiFrame"
scrolling="no"
frameborder="1"
marginheight="0"
marginwidth="0"
height="415"
width="675"
allowfullscreen="">
</iframe>
</div>
</center>


So the above would become:
<center>
<div class="employeepageembed" style="width:660px; height:400px; overflow:hidden;">
<iframe src="https://docs.google.com/presentation/d/1RBlRvXPEO57lrH8NVkkkCK9Gzmibvk1HtvQ6dC1Iav8/embed?start=false&amp;loop=false&amp;delayms=3000&amp;rm=minimal"
style="border:0px #000000 solid;"
name="myiFrame"
scrolling="no"
frameborder="1"
marginheight="0"
marginwidth="0"
height="415"
width="675"
allowfullscreen="">
</iframe>
</div>
</center>


 

Step 4: Embedding in Docebo

  1. Log into your Docebo Learn LMS as an admin.
  2. Go to the Manage section and navigate to Pages.
  3. Select the custom page where you want to embed the Google Slide or create a new one.
  4. Add a new HTML Widget to your page.
  5. Paste the customized iframe code into the HTML editor
  6. Set the minimum height of the widget to 415px and save your changes.

 

You’ll notice that there is likely a shadow around the iframe and a background color. The following will remove both. Add this to the “Custom Styles” section of “Configure Branding Look and Feel” in your Admin menu.

🌟 Additional CSS Customizations (optional)

You’ll notice that there is likely a shadow around the iframe and a background color. The following will remove both. Add this to the “Custom Styles” section of “Configure Branding Look and Feel” in your Admin menu.



/*Removes background of HTML widget in Internal Information Page*/
#doc-widget-2276 .htmlwidget {
background: none !important;
box-shadow: none !important;
}

You’ll need to swap out the #doc-widget-2276 from the value in your platform. Here’s a helpful video that walks through how to find the page ID for your specific platform. 

​​​​​​



 

 



 

 🎯 Mobile Responsive Version 

 


The steps below will create a fixed slide with fixed dimensions. For a mobile responsive version scroll to the end. 

 

Step 1: Adjusting the Slide Size in Google Slides

​​​​​​

In order for the slide to fit within the two column row layout you’ll need to change the dimensions of the slide page layout. 
 

Open your Google Slides and click on File ➡️ Page Setup


 

Click the drop down box and choose Custom

 

Next click the other drop down and choose Pixels and enter the values from the screenshot.

Step 2: Obtain Google Slides Embed Code

  1. Open your Google Slides and click on File ➡️ Share ➡️Publish to the web...
  2. Navigate to the Embed tab and click on the Publish button.
  3. Copy the url portion highlighted below 

Step 3: Formatting the HTML Template

Below is an html template for embedding (technically we’re creating an iframe) of the google slide.

 

<center>
<div class="unique-google-slide-container">
<div class="right-side-overlay"></div>
<iframe
src="cInsert Google Slide URL From Above Between the Parenthesis]"
class="unique-google-slide-iframe"
name="myiFrame"
scrolling="no"
frameborder="1"
marginheight="0"
marginwidth="0"
allowfullscreen="">
</iframe>
</div>
</center>


So the above would become:
<center>
<div class="unique-google-slide-container">
<div class="right-side-overlay"></div>
<iframe
src="https://docs.google.com/presentation/d/1RBlRvXPEO57lrH8NVkkkCK9Gzmibvk1HtvQ6dC1Iav8/embed?start=false&amp;loop=false&amp;delayms=3000&amp;rm=minimal"
class="unique-google-slide-iframe"
name="myiFrame"
scrolling="no"
frameborder="1"
marginheight="0"
marginwidth="0"
allowfullscreen="">
</iframe>
</div>
</center>



 

Step 4: Embedding in Docebo

  1. Log into your Docebo Learn LMS as an admin.
  2. Go to the Manage section and navigate to Pages.
  3. Select the custom page where you want to embed the Google Slide or create a new one.
  4. Add a new HTML Widget to your page.
  5. Paste the customized iframe code into the HTML editor
  6. Set the minimum height of the widget to 415px and save your changes.

 

 

Step 5: Adding CSS

 

You’ll notice that there is likely a shadow around the iframe and a background color. The following will remove both. Add this to the “Custom Styles” section of “Configure Branding Look and Feel” in your Admin menu.

#doc-page-182 .htmlwidget {
background: none;
box-shadow: none;
}
.unique-google-slide-container {
position: relative !important;
width: 100% !important;
padding-bottom: 61.59% !important; /* Aspect ratio based on 690x425 pixels */
height: 0 !important;
overflow: hidden !important;
}

.unique-google-slide-iframe {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
border: 0 !important;
z-index: 1 !important; /* Ensure iframe is behind the overlay */
}

.right-side-overlay {
position: absolute !important;
top: 0 !important;
right: 0 !important;
width: 3px !important; /* Adjust width as needed (1-3 pixels) */
height: 100% !important;
background-color: #0068d9ff !important; /* Match this to your slide's background color */
z-index: 2 !important; /* Ensure overlay is on top of the iframe */
}


#doc-widget-2581 .htmlwidget {
background: none;
box-shadow: none;
}


#doc-widget-2581 .htmlwidget .content.clearfix {

overflow-y: hidden !important;
}

You’ll need to swap out the #doc-widget-2276 from the value in your platform. Here’s a helpful video that walks through how to find the page ID for your specific platform. 

​​​​​​

 

 

 

 

 

 

 

Hi @pmo ,

Thank you for sharing. It's amazing!

I tried to follow your instructions, but there is a black border line. Could you please let me know how to remove it?

Best,

Pawaruth


Hi @pmo ,

Thank you for sharing. It's amazing!

I tried to follow your instructions, but there is a black border line. Could you please let me know how to remove it?

Best,

Pawaruth

I have the same issue with the line. Hoping someone know how to fix it. But this tutorial is so helpful and has been a great solution to a problem I’ve been trying to solve. Thank you!


Hey Ev

Hi @pmo ,

Thank you for sharing. It's amazing!

I tried to follow your instructions, but there is a black border line. Could you please let me know how to remove it?

Best,

Pawaruth

I have the same issue with the line. Hoping someone know how to fix it. But this tutorial is so helpful and has been a great solution to a problem I’ve been trying to solve. Thank you!




oooh the pesky black line. I ran into this issue when making the guide as well. I think it comes down to a sizing issue. Unfortunately, I’ll need to do a deep dive into the guide. I’ll try to create some time for next week to look at it but I’m glad you all found it helpful. 


Reply