Skip to main content

Display & Styling Problems

Fix appearance and interaction issues

Updated this week

Videos Look Stretched or Cropped

Symptom: Video thumbnails appear distorted, stretched, or incorrectly cropped.

Possible causes: - Theme CSS conflicts - Incorrect container sizing - Custom CSS overriding gallery styles

Solutions:

  1. Check videos per row setting:

    • Open the theme editor

    • Select the Video Gallery block

    • Adjust Videos per Row to give thumbnails more space

    • Try 3 for desktop, 2 for tablet, 1 for mobile

  2. Inspect for CSS conflicts:

    • Right-click on a thumbnail and select Inspect

    • Look for CSS rules affecting aspect-ratio or object-fit

    • Theme styles may be overriding the gallery

  3. Add custom CSS fix: css .youtube-gallery-thumbnail { aspect-ratio: 16/9; object-fit: cover; }

Carousel Arrows Not Showing

Symptom: Can’t navigate between videos in carousel layout.

Possible causes: - Grid layout selected instead of Carousel - Theme CSS hiding the arrows - Not enough videos to require navigation

Solutions:

  1. Verify layout type:

    • Open theme editor

    • Select the Video Gallery block

    • Check Layout is set to Carousel (not Grid)

  2. Check video count:

    • Arrows only appear when there are more videos than fit on screen

    • Add more videos or reduce videos per row

  3. Check for CSS conflicts:

    • Inspect the carousel area

    • Look for CSS hiding the navigation: css /* This would hide arrows */ .carousel-arrow { display: none; }

  4. Add CSS to show arrows: css .youtube-gallery .carousel-nav { display: flex !important; opacity: 1 !important; }

Modal Not Opening

Symptom: Clicking on a video thumbnail doesn’t open the video player.

Possible causes: - JavaScript error on the page - Browser extension blocking popups - Theme script conflicts

Solutions:

  1. Check for JavaScript errors:

    • Open browser Developer Tools (F12)

    • Go to the Console tab

    • Click a video thumbnail

    • Look for red error messages

  2. Test in incognito mode:

    • Open an incognito/private window

    • Visit your store

    • Try clicking a video

    • This rules out browser extensions

  3. Disable conflicting scripts:

    • Some themes load scripts that conflict with modals

    • Check if other apps or theme features use modals

    • Contact support with console errors if the issue persists

  4. Verify app embed is active:

    • Go to theme editor > Theme settings > App embeds

    • Ensure YouTube Gallery is toggled ON

Pagination Not Working

Symptom: Can’t navigate between pages of videos in Grid layout.

Possible causes: - Not enough videos for pagination - JavaScript not loading - Theme CSS conflicts

Solutions:

  1. Check video count vs per-page setting:

    • Pagination only appears when videos exceed Videos per Page

    • If you have 10 videos and show 12 per page, no pagination appears

  2. Reduce videos per page:

    • In block settings, lower the Videos per Page number

    • Try 6 or 9 to see pagination with fewer videos

  3. Check JavaScript loading:

    • Open Developer Tools > Network tab

    • Reload the page

    • Look for YouTube Gallery script files

    • Ensure they load without errors (status 200)

  4. Test click functionality:

    • Inspect the pagination buttons

    • Check they have click handlers attached

    • Look for CSS making them unclickable

Theme CSS Conflicts

Symptom: Gallery styling looks broken or doesn’t match the preview.

Common conflicts: - Global img styles affecting thumbnails - Grid/flexbox resets breaking layout - Z-index issues hiding elements - Font styles overriding text

Diagnosing conflicts:

  1. Compare with another theme:

    • Temporarily switch to Dawn (Shopify’s default theme)

    • If the gallery works correctly there, it’s a theme conflict

  2. Use browser inspector:

    • Right-click on the broken element

    • Select Inspect

    • In the Styles panel, look for crossed-out styles

    • Identify which theme CSS is overriding gallery styles

Fixing conflicts:

Add custom CSS to override problematic styles:

```css /* Reset common conflicts */ .youtube-gallery img { max-width: 100%; height: auto; }

.youtube-gallery * { box-sizing: border-box; } ```

Need help with CSS conflicts? Contact support with: - Your theme name - Screenshot of the issue - Any custom CSS you’ve added

Mobile Display Issues

Symptom: Gallery looks good on desktop but broken on mobile.

Solutions:

  1. Check responsive settings:

    • Adjust Videos per Row for mobile (1-2 recommended)

    • Test using the theme editor’s mobile preview

  2. Test actual device:

    • The theme editor preview isn’t always accurate

    • Test on a real phone or use browser device emulation

  3. Check for horizontal overflow:

    • If content extends beyond screen width

    • Add CSS: .youtube-gallery { overflow-x: hidden; }

Did this answer your question?