Editor - Getting Started
The O2VEND Theme Editor is a powerful visual editor for customizing themes. This guide will help you get started.
What is the Editor?
The O2VEND Theme Editor allows you to:
- Edit theme files directly in the browser
- Configure theme settings visually
- Edit widgets and sections
- Preview changes in real-time
- Publish themes to your store
Accessing the Editor
The editor is accessible at:
https://your-store.o2vend.com/editor
Or via the O2VEND Back Office:
- Log in to your O2VEND account
- Navigate to Themes
- Click "Edit Theme"
Editor Interface
The editor consists of several key areas:
1. Toolbar
- Theme Selector: Switch between themes
- Page Selector: Choose which page to preview
- Viewport Controls: Desktop, Tablet, Mobile views
- Save Button: Save changes
- Publish Button: Publish theme to live
2. File Explorer
- Browse all theme files
- Edit Liquid templates
- Manage assets (CSS, JS, images)
- View file structure
3. Preview Panel
- Live preview of your store
- Responsive viewport controls
- Real-time updates
4. Settings Panel
- Theme configuration
- Widget settings
- Section settings
First Steps
1. Select a Theme
Use the theme selector in the toolbar to choose which theme to edit:
// Themes are loaded from:
// - Local themes: /themes/{theme-name}/
// - Tenant repository: themes/{theme-name}/
2. Choose a Page
Select which page to preview:
- Home (index)
- Product
- Collection
- Cart
- Checkout
- Custom pages
3. Edit Files
Click on any file in the file explorer to edit:
- Liquid templates (
.liquid) - CSS files (
.css) - JavaScript files (
.js) - Configuration files (
.json)
4. Preview Changes
Changes are reflected immediately in the preview panel.
5. Save Changes
Click "Save" to save your changes. Changes are saved to the tenant repository.
Editor Modes
Edit Mode
- Full editing capabilities
- File management
- Widget editing
- Settings configuration
Preview Mode
- View-only mode
- Test user experience
- Check responsive design
File Management
Browsing Files
The file explorer shows the complete theme structure:
theme-name/
layout/
theme.liquid
templates/
index.liquid
product.liquid
sections/
header.liquid
snippets/
product-card.liquid
assets/
theme.css
theme.js
config/
settings_schema.json
Editing Files
- Click a file to open it in the editor
- Make your changes
- Changes are auto-saved (or click Save)
- Preview updates automatically
Creating Files
- Right-click in file explorer
- Select "New File"
- Enter filename
- Start editing
Deleting Files
- Right-click on file
- Select "Delete"
- Confirm deletion
Widget Editing
Adding Widgets
- Click "Add Widget" button
- Select widget type
- Configure widget settings
- Widget appears in preview
Editing Widgets
- Click on widget in preview
- Edit settings in settings panel
- Changes reflect immediately
Removing Widgets
- Click on widget
- Click "Delete" button
- Confirm deletion
Theme Configuration
Settings Schema
Theme settings are defined in config/settings_schema.json:
{
"sections": [
{
"name": "Colors",
"settings": [
{
"type": "color",
"id": "primary_color",
"label": "Primary Color",
"default": "#000000"
}
]
}
]
}
Editing Settings
- Open Settings panel
- Navigate to setting category
- Modify values
- Preview updates automatically
Preview System
Viewport Controls
Switch between viewport sizes:
- Desktop: 1920px width
- Tablet: 768px width
- Mobile: 375px width
Page Selection
Preview different pages:
- Home page
- Product pages
- Collection pages
- Cart
- Checkout
- Custom pages
Refresh Preview
Click the refresh button to reload the preview with latest changes.
Publishing
Publishing to Tenant Repository
- Make all desired changes
- Click "Publish" button
- Confirm publication
- Theme is uploaded to tenant repository
Activating Theme
- After publishing, click "Activate"
- Theme becomes live
- Previous theme is backed up
Version Management
- Each publish creates a version
- Previous versions can be restored
- Version history is maintained
Best Practices
- Test Before Publishing: Always preview changes before publishing
- Use Version Control: Publish frequently to create versions
- Backup First: Backup current theme before major changes
- Test Responsive: Check all viewport sizes
- Validate Code: Ensure Liquid syntax is correct
- Test Functionality: Verify all features work
Troubleshooting
Editor Not Loading
- Check browser console for errors
- Verify you have edit permissions
- Ensure tenant repository is accessible
Changes Not Saving
- Check tenant repository access
- Verify network connection
- Check browser console for errors
Preview Not Updating
- Refresh the preview
- Check for JavaScript errors
- Verify file syntax
Next Steps
- File Management - Learn file operations
- Theme Configuration - Configure theme settings
- Widget Editing - Edit widgets visually
- Publishing - Publish your theme