# CLAUDE.md This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. ## Project Overview This is a WordPress website for Hotel Raxa, built with: - **WordPress Core**: Standard WordPress installation - **Main Theme**: Himara theme with child theme customizations - **Booking System**: Eagle Booking plugin for hotel reservations - **Page Builder**: Elementor Pro for advanced layouts - **Contact Forms**: Contact Form 7 for customer inquiries - **Slider**: Revolution Slider for visual content - **Maintenance Mode**: Under Construction plugin ## Site Structure ### Core WordPress Files - `wp-config.php` - Database configuration and WordPress settings - `wp-content/themes/himara/` - Main theme directory - `wp-content/themes/himara-child/` - Child theme with customizations - `wp-content/plugins/` - Plugin directory with hotel-specific functionality ### Key Theme Files - `wp-content/themes/himara-child/functions.php` - Child theme customizations - `wp-content/themes/himara-child/style.css` - Child theme styles - `wp-content/themes/himara/` - Parent theme (Himara hotel theme) ### Important Plugins - `eagle-booking/` - Hotel booking and reservation system - `eagle-booking-advanced-pricing/` - Booking.com-style advanced pricing and availability management - `informatiq-eb-redsys/` - Redsys payment gateway integration for Eagle Booking - `elementor/` - Page builder for layouts - `contact-form-7/` - Contact form management - `revslider/` - Revolution Slider for image galleries - `eagle-core/` - Core functionality for the hotel theme ## Database Configuration Database settings are in `wp-config.php`: - Database name: `sql_hotelraxa_co` - Database user: `sql_hotelraxa_co` - Host: `localhost` - Table prefix: `dfgergeww323_` ## Development Tasks ### Theme Customization - Edit child theme files in `wp-content/themes/himara-child/` - Never modify parent theme files directly - All customizations should go through the child theme ### Booking System - Eagle Booking plugin handles reservations - Templates located in `wp-content/plugins/eagle-booking/templates/` - Booking forms and checkout process managed through plugin - Advanced pricing features in `wp-content/plugins/eagle-booking-advanced-pricing/` - Redsys payment integration in `wp-content/plugins/informatiq-eb-redsys/` ### Plugin Configuration - Elementor widgets and layouts - Contact Form 7 forms - Revolution Slider configurations - Under Construction mode management ### WordPress Admin Access - Admin URL: `/wp-admin/` - Login page: `/wp-login.php` ## Common WordPress Operations ### Backup Before Changes Always backup the database and files before making changes to: - Theme files - Plugin configurations - WordPress core files ### Plugin Management - Install/activate plugins through WordPress admin - Check plugin compatibility with current WordPress version - Update plugins regularly for security ### Theme Development - Use child theme for all customizations - Follow WordPress coding standards - Test changes on staging environment first ## Security Considerations - Database credentials are stored in `wp-config.php` - WordPress debug mode is disabled in production - Regular security updates for WordPress core and plugins - Backup files regularly ## Hotel-Specific Features ### Booking System (Eagle Booking) - Room management and availability - Booking forms and checkout process - Payment integration including Redsys gateway - Calendar and availability management ### Advanced Pricing System (Eagle Booking Advanced Pricing) - Booking.com-style rate management - Dynamic pricing per guest, per room, or per person - Advanced availability control with restrictions - Deals and discounts (early bird, length of stay, mobile rates, secret deals) - Professional calendar interface for revenue management - Bulk operations for rate and availability updates - Integration with original Eagle Booking without modifications ### Theme Features (Himara) - Hotel-specific layouts and templates - Room galleries and descriptions - Contact and location information - Service and amenity listings ## File Permissions Ensure proper WordPress file permissions: - Directories: 755 or 750 - Files: 644 or 640 - wp-config.php: 600 or 644