Embedding Galleries on Your Website
Embedding your Foto Master Cloud gallery directly on your website is a great way to showcase event photos without sending visitors to an external platform. The embedded gallery appears as part of your own site, maintaining a seamless brand experience.
Getting the Embed Code
- Log in to cloud.fotomaster.com.
- Navigate to Events and select the event whose gallery you want to embed.
- Go to Gallery > Share > Embed.
- Copy the provided embed code (an HTML snippet containing an
<iframe>).
The embed code looks similar to this:
<iframe src="https://cloud.fotomaster.com/gallery/embed/your-event-id"
width="100%"
height="600"
frameborder="0"
allowfullscreen>
</iframe>Adding to Your Website
HTML
Paste the embed code directly into your website's HTML where you want the gallery to appear:
- Open your website's HTML file or template editor.
- Navigate to the page or section where you want the gallery.
- Paste the embed code.
- Save and publish your changes.
WordPress
- Navigate to the page or post where you want to embed the gallery.
- Switch to the Code Editor (or use a Custom HTML block in the Block Editor).
- Paste the embed code.
- Switch back to the Visual Editor to verify the gallery appears.
- Publish or update the page.
Tip: If you're using the WordPress Block Editor (Gutenberg), add a Custom HTML block and paste the embed code there. This ensures the iframe renders correctly.
Shopify
- Go to your Shopify admin panel and navigate to the page where you want the gallery.
- In the page editor, click Show HTML (or the
<>button). - Paste the embed code.
- Save the page.
Wix
- In the Wix Editor, click Add (+) > Embed Code > Embed a Widget.
- Paste the embed code into the code field.
- Resize and position the widget on your page.
- Publish your site.
Customizing Embed Dimensions
You can adjust the embed dimensions to fit your website layout:
- Width -- Set a pixel value (e.g.,
width="800") or usewidth="100%"for a full-width responsive display. - Height -- Set the height in pixels (e.g.,
height="600"). Choose a height that shows enough content without requiring excessive scrolling.
Modify these values directly in the embed code before pasting it into your site:
<!-- Full width, taller gallery -->
<iframe src="https://cloud.fotomaster.com/gallery/embed/your-event-id"
width="100%"
height="800"
frameborder="0"
allowfullscreen>
</iframe>Responsive Embedding
To ensure the gallery looks good on all screen sizes, wrap the embed code in a responsive container:
<div style="position: relative; width: 100%; padding-bottom: 75%; height: 0; overflow: hidden;">
<iframe src="https://cloud.fotomaster.com/gallery/embed/your-event-id"
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"
frameborder="0"
allowfullscreen>
</iframe>
</div>This technique uses a padding-based aspect ratio to make the gallery resize proportionally on different screen sizes. Adjust the padding-bottom percentage to change the aspect ratio:
padding-bottom: 75%-- 4:3 aspect ratiopadding-bottom: 56.25%-- 16:9 aspect ratiopadding-bottom: 100%-- 1:1 (square) aspect ratio
Tip: Test your embedded gallery on mobile, tablet, and desktop to make sure it displays well at all sizes. The responsive container approach is recommended for most websites.
Additional Notes
- Password-protected galleries -- If the gallery has password protection enabled, visitors will be prompted to enter the password within the embedded frame before photos are displayed.
- Branding -- Your gallery branding (logo, colors, background) is carried through to the embedded version.
- Performance -- The embedded gallery loads asynchronously, so it won't slow down the rest of your page.
- Updates -- Photos added to the gallery after embedding will appear automatically. You don't need to update the embed code.
Was this helpful?
Related articles
Managing Your Event List
Managing Your Event List If you created an event with settings you would like to reuse, you can duplicate it instead of starting from scratch. This is useful when you want to keep
Guest Data and Privacy
What Guest Data Does Foto Master Collect? When you run a Foto Master event, guest data may be collected depending on the sharing and survey options you enable. The types of data co
Licensing: Legacy Lifetime vs. Current Subscription
Foto Master has used both lifetime and subscription licensing models. This article explains what each model covers, how Foto Master Cloud is billed, and the specific upgrade rules
Managing Your Cloud Plan: Upgrades, Downgrades, Grace Period, and Cancellation
Manage Foto Master Cloud plans from Cloud > Billing and software licenses or 24/7 Support from Cloud > Licenses. This article explains the different effects of upgrading, dow
Adding Credits to Your Cloud Account
You can purchase additional AI Credits manually or enable optional auto-recharge in Foto Master Cloud. Available packages, rates, minimums, recharge settings, and the amount charge