Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Shopify/horizon/llms.txt
Use this file to discover all available pages before exploring further.
Quick Diagnostics
Before diving into specific issues, run these quick checks:Clear cache
- Browser: Hard refresh (Ctrl+Shift+R or Cmd+Shift+R)
- Shopify Admin: Online Store > Themes > Actions > Edit code (forces cache clear)
Installation & Setup Issues
Git Clone Fails
Error: Permission denied (publickey)
Error: Permission denied (publickey)
- Generate SSH key:
ssh-keygen -t ed25519 -C "your_email@example.com" - Add to GitHub: Settings > SSH and GPG keys > New SSH key
Error: Repository not found
Error: Repository not found
Shopify CLI Connection Issues
Cannot connect to store
Cannot connect to store
-
Log out and log back in:
-
Verify you have the correct permissions:
- Store owner or staff account
- “Manage themes” permission enabled
-
Check firewall/network settings:
- Ensure ports 9292 (default dev server) are not blocked
- Disable VPN if causing issues
Theme push/pull fails
Theme push/pull fails
- Check file size limits (assets > 20MB will fail)
- Verify file names don’t contain special characters
- Try pushing/pulling specific files:
- Use
--allow-liveflag carefully for live themes:
Theme Development Issues
Local Development Server
Dev server won't start
Dev server won't start
-
Check if port 9292 is in use:
-
Use a different port:
- Kill any stuck processes and restart
Changes not reflecting in browser
Changes not reflecting in browser
- Hard refresh the browser (Ctrl+Shift+R)
- Disable browser cache in DevTools (Network tab > Disable cache)
- Check the terminal for sync errors
- Restart the dev server
- For CSS/JS changes, check file is being loaded:
- Open DevTools > Network tab
- Filter by CSS or JS
- Look for 304 (cached) vs 200 (fresh) status
Liquid Errors
Liquid syntax error
Liquid syntax error
- Missing closing tags (
{% endif %},{% endfor %}) - Typos in variable names
- Invalid filter usage
- Mismatched quotes
- Check the error message for line number
- Verify all tags are properly closed
- Use Theme Check to identify issues:
Variable is nil/blank
Variable is nil/blank
-
Check variable exists before using:
-
Use default filter for fallbacks:
-
Verify you’re in the correct template context:
productonly available on product templatescollectiononly on collection templates- Use
{% echo %}to debug:{% echo product %}
Filter not working
Filter not working
- Check Liquid filter documentation
-
Verify parameter syntax:
-
Some filters require specific input types:
JavaScript Errors
Uncaught ReferenceError
Uncaught ReferenceError
-
Check script load order in
layout/theme.liquid: -
Verify modules are exported/imported correctly:
- Check for typos in variable/function names
Event listener not firing
Event listener not firing
-
Verify element exists when code runs:
-
Use event delegation for dynamic elements:
- Check element isn’t disabled or hidden
CORS errors
CORS errors
-
Use Shopify’s Ajax API for cart/product operations:
- For external resources, ensure CORS headers are set on the server
- Use proxy for third-party APIs if needed
Styling Issues
CSS Not Loading
Stylesheet not applied
Stylesheet not applied
-
Verify asset_url in layout:
-
Check file exists in
/assets/directory - Clear browser cache and hard refresh
-
Check Network tab in DevTools:
- 404 error = file not found
- 304 = cached (might be outdated)
Styles overridden
Styles overridden
-
Increase specificity without using
!important: -
Check stylesheet load order:
-
Use DevTools to inspect which rules are applied:
- Right-click element > Inspect
- Check Styles panel for crossed-out rules
Custom CSS variables not working
Custom CSS variables not working
-
Define variables on
:rootor appropriate scope: - Check for typos in variable names (case-sensitive)
-
Provide fallback values:
Version-Specific Issues
v3.4.0 Update Issues
Header links not displaying correctly
Header links not displaying correctly
- Go to theme editor: Online Store > Themes > Customize
- Navigate to header section settings
- Check “Header link style” setting:
- Choose “Icon” for icon-based links
- Choose “Text” for text-based links
- Verify color scheme provides adequate contrast for text links
Account menu not working
Account menu not working
Product card width issues
Product card width issues
-
Check new width control settings in section schema:
- Desktop width setting
- Mobile width setting
- Test responsive behavior at different breakpoints
-
Clear any custom CSS that might conflict:
Performance Issues
Slow page load times
Slow page load times
-
Run Lighthouse audit (Chrome DevTools):
- Right-click > Inspect > Lighthouse tab
- Generate report
- Follow recommendations
-
Optimize images:
-
Minimize JavaScript:
- Remove unused scripts
- Defer non-critical JS
- Use code splitting
-
Enable asset preloading:
Large Contentful Paint (LCP) issues
Large Contentful Paint (LCP) issues
- Identify LCP element (usually hero image or heading)
-
Preload LCP image:
-
Use
loading="eager"for above-fold images: - Optimize image file size (compress without quality loss)
Cumulative Layout Shift (CLS)
Cumulative Layout Shift (CLS)
-
Set explicit dimensions on images:
-
Reserve space for dynamic content:
- Avoid inserting content above existing content
-
Use CSS containment:
Browser-Specific Issues
Safari-specific bugs
Safari-specific bugs
-
Flexbox bugs: Use explicit flex properties
-
Date input styling: Safari doesn’t support custom date pickers well
- Position fixed in iOS: Avoid fixed positioning during scroll
Firefox-specific bugs
Firefox-specific bugs
- Flexbox gaps: Firefox handles
gapdifferently in older versions
Getting Additional Help
Shopify Community
Shopify Support
Theme Documentation
GitHub Issues
Debug Mode
Enable Shopify’s debug mode to see detailed error messages:Reporting Bugs
When reporting issues:-
Provide context:
- Horizon version (check
config/settings_schema.json) - Browser and version
- Steps to reproduce
- Horizon version (check
-
Include error messages:
- Browser console errors
- Theme Check output
- Server-side Liquid errors
-
Share code samples:
- Minimal reproducible example
- Relevant Liquid/JS/CSS code
-
Screenshots/videos:
- Visual bugs benefit from images
- Use browser DevTools to highlight issues