Requirements
Ensure your environment meets these requirements before installing Zalbi Theme.
WordPress Environment
- WordPress 5.4 or higher
- PHP 5.6 or higher
- MySQL 5.6+ or MariaDB 10.0+
Development Dependencies
For theme development and customization:- Node.js (for asset compilation)
- Composer (for PHP dependency management)
- npm or yarn (package manager)
Required Plugins
- Advanced Custom Fields (ACF) - For custom product/event fields
- Polylang - For multilingual support (Spanish/Basque)
Installation Steps
Download the Theme
Clone the repository from GitHub or download the theme files:Alternatively, download the ZIP file from the GitHub repository.
Upload to WordPress
There are two ways to upload the theme:Option A: Via WordPress Admin
- Navigate to Appearance > Themes in your WordPress dashboard
- Click Add New → Upload Theme
- Choose the theme ZIP file
- Click Install Now
- Upload the
zalbi-themefolder to/wp-content/themes/ - Ensure proper file permissions (typically 755 for folders, 644 for files)
Install PHP Dependencies
Navigate to the theme directory and install Composer dependencies:This installs development tools like PHP CodeSniffer for code quality checks.
Install Node.js Dependencies
Install npm packages for asset compilation:
The theme uses Node.js for compiling SASS to CSS and other build processes.
Compile Assets (Development)
Compile the theme’s stylesheets:For RTL (right-to-left) language support:
Available npm commands
Available npm commands
npm run compile:css- Compiles SASS files to CSSnpm run compile:rtl- Generates RTL stylesheetnpm run watch- Watches SASS files and recompiles on changesnpm run lint:scss- Checks SASS files against CSS coding standardsnpm run lint:js- Checks JavaScript files against coding standardsnpm run bundle- Creates a distribution ZIP file
Install Required Plugins
Advanced Custom Fields (ACF)
Install ACF
- Go to Plugins > Add New
- Search for “Advanced Custom Fields”
- Install and activate the plugin
Configure Custom Fields
The theme expects the following ACF field groups:For Hinchables (Inflatables):
medidas(text) - Dimensionscapacidad(text) - Capacityetiqueta_color(select) - Category color tag
etiqueta_texto(text) - Category labeletiqueta_color(select) - Category color tagduracion(text) - Durationpublico(text) - Target audience
You’ll need to create these field groups manually in ACF or import them if a configuration file is provided.
Polylang
Configure Languages
- Navigate to Languages in the WordPress admin
- Add Spanish (Español) and Basque (Euskara)
- Set your default language
- Configure URL modifications (subdirectories recommended)
Verification
After installation, verify everything is working:Checklist
Checklist
- Theme is activated in Appearance > Themes
- Custom post types appear: Hinchables and Eventos
- ACF fields are available when editing posts
- Polylang language switcher is visible
- No PHP errors in debug log
- Stylesheet loads correctly on frontend
Troubleshooting
Custom post types not appearing
Custom post types not appearing
- Go to Settings > Permalinks
- Click Save Changes (this flushes rewrite rules)
- Refresh your admin panel
ACF fields not showing
ACF fields not showing
- Ensure ACF plugin is activated
- Check that field groups are assigned to the correct post types
- Verify field group location rules
Styles not loading
Styles not loading
- Run
npm run compile:cssto compile SASS - Clear browser cache
- Check file permissions on
style.css
Composer/npm errors
Composer/npm errors
- Ensure you have the correct versions of Node.js and Composer
- Delete
node_modulesandvendorfolders, then reinstall - Check for permission issues in the theme directory
Next Steps
Quick Start Guide
Learn how to configure the theme and create your first hinchable or event