What It Does
The Gift Card section controls the branding and visual appearance of Shopify gift card pages. Customize the logo displayed at the top of gift card pages and on the printable gift card itself, using either uploaded images or SVG code for sharp, scalable graphics.Getting Started
Access Gift Card Template
Navigate to Online Store > Themes > Customize > Gift Cards template (automatic template for gift card purchases)
Upload Main Logo
Add your store logo using the Logo Image picker, or use SVG Code for vector graphics
Customize Card Logo (Optional)
Add a separate logo for the gift card graphic itself, or leave empty to use main logo
Settings
Logo Image
Logo Image
Type: Image picker
Default: EmptyYour store logo displayed at the top of the gift card page (the page customers see when they receive/redeem a gift card).
Default: EmptyYour store logo displayed at the top of the gift card page (the page customers see when they receive/redeem a gift card).
What This Logo Controls
This logo appears on the gift card landing page:- Top of page (header area)
- Visible when customer clicks gift card link in email
- Shown when customer views gift card to check balance
- Brand identifier for gift card redemption experience
- On the gift card graphic itself (use Logo Card Image for that)
- In email notifications (controlled by email settings)
- On printed receipts
Image Specifications
Recommended dimensions:- Width: 200-400px (optimal)
- Height: 60-120px (optimal)
- Aspect ratio: Horizontal logos work best (landscape orientation)
- File format: PNG with transparent background (recommended) or JPG
- File size: Under 100KB (page header images should load quickly)
Image Guidelines
Best practices:- Use your standard store logo (maintains brand consistency)
- Transparent background PNG for professional appearance
- High resolution for retina displays (2x actual display size)
- Horizontal orientation (vertical logos may appear too large)
- Simple, recognizable logo (avoids complexity at small sizes)
- Extremely small images (will appear blurry when scaled up)
- Very tall logos (can dominate header, push content down)
- Complex logos with fine details (may not be legible at header size)
- Text-heavy logos (hard to read at smaller sizes)
Logo SVG Code
Logo SVG Code
Type: Textarea
Default: Empty
Info: “Overwrites logo image”Paste SVG (Scalable Vector Graphics) code for your logo instead of using an uploaded image. Provides perfectly sharp logos at any size and typically loads faster than image files.
Default: Empty
Info: “Overwrites logo image”Paste SVG (Scalable Vector Graphics) code for your logo instead of using an uploaded image. Provides perfectly sharp logos at any size and typically loads faster than image files.
SVG vs Image
Why use SVG instead of image?- Perfect scaling: Looks crisp at any resolution (retina, 4K, print)
- Smaller file size: Typically 20-80% smaller than equivalent PNG/JPG
- Faster loading: Inline SVG requires no HTTP request
- Color flexibility: Can be dynamically styled with CSS
- Print quality: Perfect for any DPI
- Logo has photographic elements or gradients
- Logo uses special fonts not web-safe
- You don’t have SVG version of logo
- Logo is complex with many paths (very large SVG code)
How to Get SVG Code
Method 1: Export from design software- Open logo in Adobe Illustrator, Figma, or Sketch
- Export as SVG (optimize for web if option available)
- Open exported .svg file in text editor
- Copy all code (starts with
<svg, ends with</svg>) - Paste into this field
- Use online converter (e.g., vectormagic.com, autotracer.com)
- Upload your logo image
- Download SVG file
- Open in text editor and copy code
SVG Code Example
Important: Overwrites Logo Image
When SVG code is present, it completely replaces the Logo Image:- Logo Image setting is ignored
- SVG code takes priority
- To revert to image, clear SVG code field entirely
SVG Code Tips
Do:- Use
viewBoxattribute for responsive scaling - Set reasonable
widthandheightattributes - Optimize SVG code (remove unnecessary attributes, comments)
- Test SVG displays correctly after pasting
- Include external stylesheet references (may not load)
- Use JavaScript in SVG (security risk, won’t execute)
- Paste very complex SVGs (5000+ lines of code—use image instead)
- Forget closing
</svg>tag (will break rendering)
Validating SVG Code
Before pasting:- Open SVG code in browser to verify it displays correctly
- Check code starts with
<svgand ends with</svg> - Confirm no external dependencies (fonts, images, stylesheets)
- Test on different screen sizes (SVG should scale properly)
Logo Card Image
Logo Card Image
Type: Image picker
Default: Empty
Info: “Defaults to logo image”Logo displayed on the gift card graphic itself—the visual card representation customers see and can print. If empty, uses the main Logo Image.
Default: Empty
Info: “Defaults to logo image”Logo displayed on the gift card graphic itself—the visual card representation customers see and can print. If empty, uses the main Logo Image.
What This Logo Controls
This logo appears on the gift card graphic:- Visual gift card design (the “card” customers see)
- Printable gift card version
- Email attachments (if theme includes card preview)
- Balance-check view
- Page header logo (controlled by Logo Image)
- Email logo (controlled by email settings in Shopify Admin)
When to Use Separate Card Logo
Use separate Logo Card Image when:Different branding for gift cards:- Page header: Standard color logo
- Gift card: White/inverted logo (for dark card background)
- Page header: Wide horizontal logo
- Gift card: Square or vertical logo (fits card dimensions better)
- Page header: Year-round logo
- Gift card: Holiday-themed logo for gift-giving season
- Page header: Standard screen logo
- Gift card: High-contrast logo optimized for printing
- Same logo works for both page and card
- Logo is already versatile (works on any background)
- Simpler management (one logo to maintain)
- Brand consistency is priority
Card Logo Image Specifications
Gift cards have constrained space, so logo sizing differs from page header:Recommended dimensions:- Width: 200-300px (smaller than page header logo)
- Height: 80-150px (or proportional to width)
- Aspect ratio: Square or near-square works best on card
- File format: PNG with transparent background (essential)
- File size: Under 100KB
- Smaller overall size (card has limited space)
- Transparent background required (card has its own background)
- High contrast (needs to show clearly on card background)
Background Considerations
Gift card templates use background images or colors. Your card logo must work with:- Dark backgrounds (use light/white logo)
- Light backgrounds (use dark logo)
- Patterned backgrounds (use solid logo with contrast)
Logo Card SVG Code
Logo Card SVG Code
Type: Textarea
Default: Empty
Info: “Overwrites logo card image and defaults to logo SVG code”SVG code for the gift card graphic logo. Provides the same benefits as Logo SVG Code but specifically for the card design.Size/detail variations:
Default: Empty
Info: “Overwrites logo card image and defaults to logo SVG code”SVG code for the gift card graphic logo. Provides the same benefits as Logo SVG Code but specifically for the card design.
Fallback Hierarchy
This setting has a multi-level fallback:- If Logo Card SVG Code is present: Uses this SVG (highest priority)
- Else if Logo SVG Code is present: Uses main Logo SVG Code
- Else if Logo Card Image is present: Uses Logo Card Image
- Else: Uses main Logo Image
- Card SVG > Main SVG > Card Image > Main Image
- Set all four: Maximum customization (separate vector graphics for page and card)
- Set only main logo (image or SVG): Same logo everywhere (simplest)
- Set main logo + card logo: Different styles for page vs card
- Mix and match as needed
When to Use Separate Card SVG
Use separate Logo Card SVG Code when:Color variations:- Page header: Detailed logo with tagline
- Gift card: Simplified logo icon only (fits card space)
- Card SVG: Simplified paths for clean printing
- Page SVG: More complex with gradients (screen-only effects)
- Main Logo SVG works for both page and card
- Simplicity is priority (fewer settings to manage)
- Logo is monochrome and versatile
SVG Code Requirements for Cards
Same technical requirements as Logo SVG Code:- Complete SVG code (
<svg>to</svg>) - Responsive
viewBoxattribute - No external dependencies
- Optimized file size (under 5KB ideally)
- High contrast: Ensure paths have strong color (card backgrounds vary)
- Simplicity: Gift cards are smaller visual space than page headers
- Test printing: View in print preview to confirm logo looks good printed
Managing Multiple Logo Variants
Strategy 1: Minimal (Easiest)- Set only Logo Image: One logo everywhere
- Pros: Simplest management, consistent branding
- Cons: May not be optimized for all contexts
- Set Logo Image (page header)
- Set Logo Card Image (gift card)
- Pros: Customized for each context
- Cons: Two logos to maintain
- Set Logo SVG Code (page header)
- Set Logo Card SVG Code (card)
- Pros: Perfect quality, fast loading
- Cons: Requires SVG versions of logo
- Set Logo SVG Code (page header, vector)
- Set Logo Card Image (card, image)
- Pros: Optimized page, simple card
- Cons: Mixed file types to manage
Best practices
Use Transparent Background PNGs
Always use PNG images with transparent backgrounds for logos. Opaque backgrounds (white boxes around logo) look unprofessional on gift card pages.
Prefer SVG for Page Header
Use SVG code for page header logo when possible. Provides perfect sharpness on all devices and loads faster than images.
Test on Actual Gift Cards
Create a test gift card product, purchase it (free in test mode), and view the actual gift card page to verify logos display correctly.
Optimize for Print
Gift cards are often printed. Ensure logos have sufficient resolution and contrast to look good printed on paper.
Consider Card Background
Check your gift card template’s background color/image. Ensure logo has enough contrast to be clearly visible against that background.
Keep Card Logo Simple
Gift cards have limited space. Use simplified logo versions (icon only, no tagline) on cards if your full logo is complex.
Maintain Brand Consistency
Unless you have specific reason for different logos, use the same logo on page and card for brand consistency and simpler management.
Compress Image Files
Optimize logo images to under 100KB. Use tools like TinyPNG or ImageOptim. Smaller files load faster without visible quality loss.
Common Use Cases
Standard Setup (Same Logo Everywhere)
Settings:- Logo Image: Store logo PNG (transparent background)
- Logo SVG Code: Empty
- Logo Card Image: Empty (defaults to Logo Image)
- Logo Card SVG Code: Empty (defaults to Logo Image)
Premium Setup (SVG Everywhere for Quality)
Settings:- Logo Image: Empty (not used)
- Logo SVG Code: Store logo SVG (page header)
- Logo Card Image: Empty
- Logo Card SVG Code: Same SVG as Logo SVG Code (or leave empty to use Logo SVG Code)
Dark Gift Card Background (Inverted Logo)
Settings:- Logo Image: Black logo PNG (page header, light background)
- Logo SVG Code: Empty
- Logo Card Image: White logo PNG (gift card, dark background)
- Logo Card SVG Code: Empty
Seasonal Gift Card Branding
Settings:- Logo Image: Standard year-round logo (page header)
- Logo SVG Code: Empty
- Logo Card Image: Holiday-themed logo or badge (October-December)
- Logo Card SVG Code: Empty
Simplified Card Logo for Space
Settings:- Logo Image: Full logo with text and tagline (page header)
- Logo SVG Code: Empty
- Logo Card Image: Logo icon only, no text (fits card better)
- Logo Card SVG Code: Empty
Layout Behavior
Gift Card Page Structure
When a customer views a gift card, the page structure is:Logo Sizing on Page
Page Header Logo:- Automatically scales to fit header height (typically 60-80px tall)
- Maintains aspect ratio (width scales proportionally)
- Centered or left-aligned depending on theme design
- Responsive (smaller on mobile devices)
- Sized to fit card design (varies by theme)
- Typically smaller than page header logo (limited card space)
- Positioned on card graphic (top-center usually)
- May adjust position based on card template design
Mobile Behavior
On mobile devices:- Page header logo: Scales down to fit mobile header (typically 40-50px tall)
- Gift card graphic: Scales to fit mobile screen width while maintaining aspect ratio
- Gift card logo: Scales proportionally with gift card graphic
Print Behavior
When customers print gift cards:- Logo Card Image/SVG renders at high resolution for print quality
- SVG logos print perfectly at any DPI
- Image logos print at uploaded resolution (why high-res images matter)
- Page header logo is typically hidden in print view (only card prints)
Related Sections
- Header - Main site header logo (separate from gift card logo)
- Footer - Footer branding (separate from gift card logo)
- Email templates - Gift card email notifications (configured in Shopify Admin, not theme)
Technical Notes
Gift Card Template Isolation
The Gift Card section only affects the gift card template (gift_card.liquid). It has no impact on:- Main store templates (homepage, product pages, collections)
- Email notifications (controlled separately in Shopify Admin > Settings > Notifications)
- Checkout (controlled by Shopify, not theme)
- Admin interfaces
Image vs SVG Rendering
Image rendering (PNG/JPG):- HTTP request to load image file
- Width/height attributes set via CSS
- May appear blurry on high-DPI screens if not 2x resolution
- Inline SVG, no HTTP request
- Perfect at any resolution
- Slightly larger HTML payload (SVG code in page source)
Fallback Logic Implementation
The theme checks settings in this priority order:SVG Security and Sanitization
Shopify sanitizes SVG code to prevent security issues:- JavaScript removed (SVG animations may not work)
- External resource references removed (linked fonts, images)
- Script tags stripped
- Event handlers removed (onclick, onload, etc.)
- Paths, shapes, text
- Fill and stroke colors
- Transforms and basic styling
- ViewBox and dimensions
File Size Recommendations
Logo Image (PNG/JPG):- Target: 50-100KB
- Maximum: 200KB (larger files slow gift card page loading)
- Optimization: Use TinyPNG, ImageOptim, or Shopify’s automatic optimization
- Target: Under 5KB (well-optimized SVG)
- Maximum: 20KB (very complex logos may reach this)
- Optimization: Use SVGO, SVGOMG.com, or export optimizer in design software
- Slower gift card page loading
- Longer time for customers to view gift card
- Poor experience on slow connections
- Unnecessary bandwidth usage
Accessibility Considerations
Logo images:- Automatically include
alttext (uses store name or “Gift card logo”) - Screen readers announce logo presence
- Decorative role (not critical content)
- May include
<title>tag for screen reader context - Aria attributes for accessibility
- Semantically equivalent to image logo
Testing Gift Cards
How to test:- Create gift card product in Shopify Admin
- In test mode, purchase gift card (no actual charge)
- Check email for gift card link
- Click link to view gift card page
- Verify logos display correctly on page and card graphic
- Test print preview
- Test on mobile device
- Page header logo loads and displays correctly
- Gift card graphic logo loads and displays correctly
- Logos have appropriate size/scale
- Logos have sufficient contrast against backgrounds
- Print preview shows logo clearly
- Mobile view displays logos properly
- SVG logos (if used) render without errors
Troubleshooting
Logo not displaying on gift card page:- Verify Logo Image is uploaded (or Logo SVG Code is pasted)
- Check image file uploaded successfully (re-upload if necessary)
- Confirm you’re viewing an actual gift card page (not Theme Customizer preview)
- Clear browser cache and hard refresh (Cmd/Ctrl + Shift + R)
- Check image file isn’t corrupted (open directly in browser)
- Verify SVG code starts with
<svgand ends with</svg> - Check for syntax errors in SVG code (missing tags, unclosed elements)
- Ensure SVG doesn’t require external resources (fonts, images)
- Test SVG code in a separate HTML file to verify it’s valid
- Try simplifying SVG code (remove animations, complex effects)
- Verify Logo Card Image is actually uploaded (check field isn’t empty)
- Confirm Logo Card SVG Code isn’t set (it overrides Logo Card Image)
- Check card template includes card logo rendering (theme code issue if missing)
- View actual gift card (not Theme Customizer) to confirm
- Upload higher resolution image (2x display size minimum)
- Use SVG instead of image for perfect quality
- Check theme isn’t forcing small image to scale up excessively
- Verify image format is PNG (not overly-compressed JPG)
- Check if gift card background is different than expected (dark vs light)
- Use separate Logo Card Image with appropriate color (white for dark backgrounds, dark for light backgrounds)
- Test SVG with
fillcolor appropriate for card backgrounds - Preview actual gift card page to verify background color
- Theme controls logo sizing via CSS (not editable in Customizer)
- Try different logo dimensions (theme may have optimized size)
- For card logo, ensure dimensions are appropriate for constrained card space
- Advanced: Edit theme code to adjust logo size CSS
- Ensure Logo Card Image is high resolution (higher than screen display)
- Use SVG for perfect print quality at any size
- Check browser print preview settings (some browsers reduce image quality)
- Test on different browsers (Safari, Chrome, Firefox vary in print handling)
- Click “Save” in Theme Customizer after making changes
- Refresh gift card page (not Theme Customizer)
- Clear browser cache completely
- Check you’re editing the correct theme (published vs draft)
- View in incognito/private browser window to rule out caching