# CraftForge â€“ Agency & Portfolio WordPress Theme

![CraftForge](assets/images/.gitkeep)

**CraftForge** is a premium WordPress theme built for creative agencies, design studios, and freelancers. It features a bold modern design, portfolio showcase with case studies, WooCommerce integration, and full Elementor compatibility.

---

## Features

- **Premium Design** â€“ Dark & gradient-heavy aesthetic with bold typography
- **Portfolio Showcase** â€“ Custom post type with filterable grid, case study layouts, gallery, and testimonials
- **Services** â€“ Dedicated CPT for listing your service offerings
- **WooCommerce Ready** â€“ Fully styled shop pages with custom product cards
- **Elementor Compatible** â€“ 4 custom widgets (Portfolio Grid, Services, Team, Testimonials)
- **Customizer Controls** â€“ Hero section, colors, social links, footer CTA, portfolio/shop settings
- **Block Editor Styled** â€“ Full Gutenberg editor styling via theme.json and editor-style.css
- **Translation Ready** â€“ Complete POT file for localization
- **One Click Demo Import** â€“ Quick setup with sample content
- **Responsive & Accessible** â€“ Mobile-first with ARIA labels and keyboard navigation
- **Performance Optimized** â€“ Minimal dependencies, no jQuery on the frontend

## File Structure

```
craftforge/
â”œâ”€â”€ style.css                      # Theme info + 800+ lines CSS
â”œâ”€â”€ functions.php                  # 400+ lines: CPTs, taxonomies, meta, enqueue
â”œâ”€â”€ theme.json                     # Block editor settings
â”œâ”€â”€ header.php                     # Glass-effect header with mobile menu
â”œâ”€â”€ footer.php                     # CTA, 4-col widgets, social links
â”œâ”€â”€ front-page.php                 # Hero, services, portfolio, stats, testimonials
â”œâ”€â”€ index.php / page.php           # Blog listing, default page
â”œâ”€â”€ single.php                     # Blog post with reading time & share
â”œâ”€â”€ single-portfolio.php           # Case study layout
â”œâ”€â”€ single-service.php             # Service detail with CTA
â”œâ”€â”€ archive.php                    # Blog archive with sidebar
â”œâ”€â”€ archive-portfolio.php          # Portfolio grid with filter
â”œâ”€â”€ archive-service.php            # Services listing
â”œâ”€â”€ search.php / 404.php           # Search results, custom 404
â”œâ”€â”€ sidebar.php / woocommerce.php  # Sidebar, WooCommerce wrapper
â”œâ”€â”€ woocommerce/
â”‚   â””â”€â”€ content-product.php        # Custom product card
â”œâ”€â”€ template-parts/
â”‚   â”œâ”€â”€ content.php                # Blog card
â”‚   â”œâ”€â”€ content-none.php           # No results
â”‚   â”œâ”€â”€ content-portfolio-card.php # Portfolio card with hover
â”‚   â”œâ”€â”€ content-service-card.php   # Service card
â”‚   â”œâ”€â”€ content-team-card.php      # Team member card
â”‚   â””â”€â”€ hero-section.php           # Customizer-driven hero
â”œâ”€â”€ page-templates/
â”‚   â”œâ”€â”€ template-full-width.php    # Elementor full width
â”‚   â”œâ”€â”€ template-about.php         # About with team grid
â”‚   â”œâ”€â”€ template-contact.php       # Contact form + info
â”‚   â”œâ”€â”€ template-services.php      # All services
â”‚   â””â”€â”€ template-portfolio.php     # Full portfolio grid
â”œâ”€â”€ inc/
â”‚   â”œâ”€â”€ customizer.php             # Customizer sections & controls
â”‚   â”œâ”€â”€ template-tags.php          # Breadcrumbs, share, reading time
â”‚   â”œâ”€â”€ demo-import.php            # OCDI configuration
â”‚   â”œâ”€â”€ elementor-widgets.php      # 4 Elementor widgets
â”‚   â”œâ”€â”€ portfolio-functions.php    # Portfolio helpers
â”‚   â””â”€â”€ woocommerce-hooks.php      # WooCommerce customizations
â”œâ”€â”€ assets/
â”‚   â”œâ”€â”€ css/
â”‚   â”‚   â”œâ”€â”€ editor-style.css       # Gutenberg editor styles
â”‚   â”‚   â”œâ”€â”€ elementor-widgets.css  # Elementor widget styles
â”‚   â”‚   â””â”€â”€ woocommerce.css        # WooCommerce overrides
â”‚   â”œâ”€â”€ js/
â”‚   â”‚   â”œâ”€â”€ main.js                # Frontend: menu, filter, lightbox
â”‚   â”‚   â””â”€â”€ admin.js               # Admin: customizer preview, gallery
â”‚   â”œâ”€â”€ images/
â”‚   â””â”€â”€ fonts/
â”œâ”€â”€ demo-content/
â”œâ”€â”€ languages/
â”‚   â””â”€â”€ craftforge.pot             # Translation template
â”œâ”€â”€ docs/
â”‚   â”œâ”€â”€ installation.md
â”‚   â”œâ”€â”€ demo-import.md
â”‚   â””â”€â”€ customization.md
â””â”€â”€ README.md
```

## Requirements

- WordPress 6.0+
- PHP 7.4+

## Installation

See [docs/installation.md](docs/installation.md) for detailed instructions.

## Demo Import

See [docs/demo-import.md](docs/demo-import.md) for one-click demo content setup.

## Customization

See [docs/customization.md](docs/customization.md) for colors, typography, portfolio, WooCommerce, and Elementor setup.

## Credits

- **Fonts:** [Inter](https://fonts.google.com/specimen/Inter), [DM Sans](https://fonts.google.com/specimen/DM+Sans) (Google Fonts, OFL)
- **Icons:** WordPress Dashicons

## License

GNU General Public License v2 or later. See [LICENSE](https://www.gnu.org/licenses/gpl-2.0.html).
