Request to Embed YouTube Video Within Collage Block Without External Redirects

Topic summary

A user seeks to embed a YouTube video within a collage block that plays inline without opening external windows or displaying post-playback recommendations.

Technical Solution Provided:

  • Use YouTube’s embed URL format: https://www.youtube.com/embed/VIDEO_ID
  • Append ?rel=0 parameter to disable related video recommendations
  • Implement via iframe code with specified dimensions and permissions
  • The iframe approach keeps playback contained within the collage block

Alternative App Recommendation:

  • Essential Grid Gallery app suggested as an additional solution
  • Offers video gallery templates with collage layouts that prevent external redirects
  • Free plan available for testing
  • Demo link provided for reference

Status: The issue appears resolved with both a code-based solution and an app-based alternative offered. No follow-up questions remain unanswered.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

Dear Team, I have embedded a YouTube video into the collage. However, when the video is played, it opens in a new external window, and once it finishes playing, it displays video recommendations. I am wondering if it’s possible to configure the video to play only within the collage block without redirecting outside the frame. Additionally, can we ensure that no external video recommendations are shown after playback? Please let me know if this is feasible. Thank you! Best regards,

Hi @Alliance

I’ve embedded a YouTube video into the collage block, but when the video is played, it opens in a new window and shows recommendations after it finishes. Can we make the video play only within the collage block without redirecting outside? Also, can we stop it from showing recommendations after playback?

Here’s a simple solution:

  1. Use the YouTube embed URL: https://www.youtube.com/embed/YOUR_VIDEO_ID.

  2. Add ?rel=0 to the end of the URL to disable recommendations.

  3. Use an iframe to embed the video in the collage block.

Example:

<iframe width="560" height="315" src="https://www.youtube.com/embed/YOUR_VIDEO_ID?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen=""></iframe>

This should keep the video within the collage block and stop it from showing recommendations.

Thanks!
Best regards,
Sadikur

Hi @Alliance

In addition to the solution I previously shared, I’d like to suggest another easy way to achieve a YouTube collage layout without redirects. You can use the Essential Grid Gallery app, which offers various video gallery templates, including a collage block layout that stays within the frame and does not redirect outside. It’s a great option, and the best part is that you can use their free plan to get started!

Here’s a link to a demo for reference.

This might give you even more flexibility in creating the desired layout. Hope this helps!

Best regards,
Sadikur