Adding a slideshow to Guide articles


7 Comentários

  • Nicole Saunders
    Zendesk Community Manager

    Hey Christen - 

    There's no native "slideshow" functionality, but it's possible that someone from the community know s how or could help custom build something like that. I'll ping a few folks to see if anyone has ideas. 

  • Jacob the Moderator
    Community Moderator

    Hi Christen,

    There are a number of available options for embedding image slideshows, the simplest thing to do might be using Google slides - here's a guide for doing that.

    I did a quick test on a Guide article and think it came out quite nice:

    For this or some other image embed service to work, you'll want to make sure that you have enabled the "Display unsafe content" checkbox in the Guide Security setting.

    Once you have your embed code for the slideshow you open up the article's Source Code editor and paste it where you want it displayed in the content.


    Hope that helps you out.

  • Andrew J
    Community Moderator

    @Jacob, great tutorial!  

  • Christen Bejar

    Thank you @Jacob, this is definitely a good start for me. Now I can investigate into making it responsive. :)

  • Jacob the Moderator
    Community Moderator

    Excellent! Good to hear, feel free to come back and share your solution, especially if you find a responsive embed solution.

    Thanks Andrew ;)

  • Christen Bejar

    I ended up finding a bit of CSS online that made this work. 

    Note: pretty sure this is reliant on allowing unsafe content, I haven't tested otherwise.

    For the Google Slides iframe container, I modified the HTML within the article directly:

    <div class="intrinsic-container intrinsic-container-16x9"><iframe src=";loop=false&amp;delayms=3000" frameborder="0" allowfullscreen="true"></iframe></div>

    Note: The Google Slides width and height are intentionally removed. It gets expanded by the CSS.

    In the style.css, I went ahead and added this piece to the bottom:

    /* responsive slidesframe */
    .intrinsic-container {
    position: relative;
    height: 0;
    overflow: hidden;

    /* 16x9 Aspect Ratio */
    .intrinsic-container-16x9 {
    padding-bottom: 56.25%;

    /* 4x3 Aspect Ratio */
    .intrinsic-container-4x3 {
    padding-bottom: 75%;

    .intrinsic-container iframe {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;

    Published both and it looks to be working. Props to where I originally found the code changes.

    Thanks everyone for the assistance, and if anyone manages to find a solution to this without allowing unsafe content, let me know! 

  • Jacob the Moderator
    Community Moderator

    Awesome Christen!

    Will need to try that myself, thanks for sharing!


Publicação fechada para comentários.

Powered by Zendesk