Expanding images in Help Center articles | Community
Skip to main content

Expanding images in Help Center articles

  • September 23, 2018
  • 67 replies
  • 0 views

Show first post

67 replies

  • August 2, 2021

Hi 27038691848 thanks for the info.

I have tried absolutely everything and can't get Fancybox to work at all. I've even tried their latest V4.

Here is the console error I get:

Any ideas? 

David


Joshua25
  • Author
  • August 2, 2021

@David Preston did you try the solution that Joshua Barnard posted a few days ago? Maybe that will work better for you?


  • August 3, 2021

@Joshua Tallent I never saw his post as it was on the next page of replies *facepalm 🤦‍♂️.

That did the trick! Thanks, @JOSHUA BARNARD 🙌🙌🙌


Joshua16
  • August 3, 2021

You're welcome, @David Preston. Would you please upvote my solution to help others find the answer more quickly?


Jeff62
  • January 19, 2022

@joshua16 solution worked really well for us, my developer says the instructions provided were easy to follow. Thanks for this!


Devan
  • January 19, 2022

Hey @jeff62,

Glad to hear this tip worked for you! If there is anything else we can help with here in the community, please don't hesitate to give us a shout on the forums! :D

Have a great day!


  • March 18, 2022

I have followed these instructions and it's not working for me either. I'm using the Mink theme.


Joshua16
  • March 20, 2022

Hi @everett12,

Please try the solution I presented and see if that works for you.

Thanks,

Josh


  • March 21, 2022

@joshua16 I tried your solution as well and it did not work.


  • March 24, 2022

@joshua16 I reversed all changes, tried following your steps again and still not working. I also made sure "Display unsafe content" was checked, as I saw someone post in an earlier comment, although I don't know if that's required.

Do you have any other suggestions?


Joshua16
  • March 25, 2022

Hi @everett12,

Can you please provide a link to a public article for me to review? I can check for JavaScript changes in the source code.

Thanks,

Josh


Aaron16
  • April 13, 2023

Can't believe this isn't standard functionality with THE LEADER in knowledgebase software. Did Zendesk just forget to improve their WYSYWIG for the last 3 years?


kyle.kowalsky

I love this! I'm using Joshua's instructions from the 2nd page of the comments. I'm trying to figure out how to add a little "Click to expand" line below pictures before clicking, ideally without messing up the existing formatting of pages.


  • May 24, 2024

if somebody wants to add the class automatically without doing it manually here is the code:

 

place in document_head.hbs under the fancybox scripts.

  <script>
       $(document).ready(function() {
           // Add fancybox class to all images
           $('img').addClass('fancybox');

           // Attach click event listener to images with fancybox class
           $('.article-body img.fancybox').on('click', function() {
               $.fancybox.open([
                   {
                       src: $(this).attr("src"),
                       opts: {},
                   },
               ]);
           });
       });
   </script>  


Simeon
  • February 19, 2025

is this not standard functionality yet? the original article is from 2018!


Joshua25
  • Author
  • February 19, 2025

Yeah, unfortunately ZenDesk does not do a lot of updates to Guide…


Elaine14
  • October 24, 2025
Hi Simeon and Joshua,
 
Thanks for bringing this up — totally understandable question!
 
At the moment, image expansion (lightbox-style) is still not built in as a native feature in Zendesk Guide. The method outlined above using a script like Fancybox remains the recommended customization if you’d like readers to click and enlarge images directly within your Help Center articles.
 
That said, our product team is aware of how useful this functionality would be for many customers, and it’s something that continues to be discussed internally as part of broader Guide improvements. I’d suggest following the release notes for any announcements around new content presentation features.
 
Appreciate you checking in — it’s great feedback, and I’ve noted your comments internally for visibility with our product team.