# Nihongo WordPress Theme

A comprehensive WordPress theme for Japanese learning services with multilingual support, course management, and modern design.

## Features

### Core Features
- **Multilingual Support**: Japanese and English language switching
- **Custom Post Types**: Courses, Testimonials, and News
- **Responsive Design**: Mobile-first approach with modern UI
- **WordPress Integration**: Full WordPress theme compatibility
- **SEO Optimized**: Proper meta tags and structured data

### Custom Post Types
1. **Courses** - Japanese language courses with levels, duration, and pricing
2. **Testimonials** - Student feedback with ratings and country information
3. **News** - Blog posts and announcements

### Page Templates
- `index.php` - Main template with home page content
- `page-courses.php` - Courses listing page
- `page-contact.php` - Contact form page
- `page-j-bridge.php` - J-Bridge service page
- `page-news.php` - News and blog page
- `page-voices.php` - Student testimonials page
- `single-course.php` - Individual course detail page
- `single-testimonial.php` - Individual testimonial page
- `single-news.php` - Individual news article page
- `archive-course.php` - Course archive page
- `archive-testimonial.php` - Testimonial archive page
- `archive-news.php` - News archive page
- `404.php` - Custom 404 error page

### Template Parts
- `template-parts/content-home.php` - Home page content template

## Installation

1. Upload the theme folder to `/wp-content/themes/`
2. Activate the theme in WordPress admin
3. The theme will automatically create necessary pages and settings

## Theme Setup

### Required Plugins
No additional plugins are required. The theme includes all necessary functionality.

### Customization Options

#### Customizer Settings
- Hero background image
- Contact email and phone
- Logo upload
- Color scheme options

#### Custom Fields
- **Courses**: Level, Duration, Price, Features
- **Testimonials**: Name, Country, Course, Rating

### Language Support

The theme includes built-in translation functions:
- `nihongo_translate($key)` - Get translated text
- `nihongo_get_current_language()` - Get current language
- `nihongo_set_language($lang)` - Set language

### Navigation Menus

The theme supports two menu locations:
- **Primary Menu** - Main navigation
- **Footer Menu** - Footer navigation

### Widget Areas

- **Sidebar** - Main sidebar widget area
- **Footer Widgets** - Footer widget area

## File Structure

```
nihongo/
├── assets/
│   ├── css/
│   │   └── style.css
│   ├── js/
│   │   └── main.js
│   └── img/
│       └── [image files]
├── includes/
│   ├── header.php
│   └── footer.php
├── template-parts/
│   └── content-home.php
├── functions.php
├── index.php
├── style.css
├── page-*.php
├── single-*.php
├── archive-*.php
├── 404.php
└── README.md
```

## Customization

### Adding New Translations

Edit the `nihongo_get_translations()` function in `functions.php` to add new translation keys.

### Styling

The theme uses CSS custom properties for easy color customization. Edit the `:root` variables in `style.css`.

### JavaScript

The theme includes interactive features like:
- Hero image slider
- Mobile menu toggle
- Language switcher
- Contact form validation
- Course filtering

## Support

For support and customization requests, please contact the nihongo.net team.

## License

This theme is proprietary software developed for nihongo.net.

## Version History

- **1.0.0** - Initial release with full WordPress integration