Skip to content
AI GROWTH SPACE
AI GROWTH SPACE
  • BLOG
  • HOME PAGE
AI GROWTH SPACE
AI GROWTH SPACE
  • BLOG
  • HOME PAGE

HOME PAGE

/*
Theme Name: AI Growth Space
Theme URI: https://example.com/ai-growth-space
Author: AI Growth Space
Author URI: https://example.com
Description: Production-ready WordPress theme for a freelance AI digital marketer — clean, modern, responsive, SEO-friendly, and lightweight.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-growth-space
Tags: custom-logo, custom-menu, accessibility-ready, responsive-layout, blog, two-columns
*/

=== FILE STRUCTURE ===

ai-growth-space/
├─ style.css
├─ functions.php
├─ index.php
├─ header.php
├─ footer.php
├─ sidebar.php
├─ single.php
├─ page.php
├─ archive.php
├─ 404.php
├─ template-parts/
│ ├─ content-excerpt.php
│ └─ content-single.php
├─ parts/
│ └─ hero.php
├─ assets/
│ ├─ css/
│ │ └─ main.css
│ ├─ js/
│ │ └─ main.js
│ └─ images/
│ └─ screenshot.png
└─ readme.md

— FILE: functions.php —
esc_html__( ‘Primary Menu’, ‘ai-growth-space’ ),
‘footer’ => esc_html__( ‘Footer Menu’, ‘ai-growth-space’ ),
) );

// HTML5 support
add_theme_support( ‘html5’, array( ‘search-form’, ‘comment-form’, ‘comment-list’, ‘gallery’, ‘caption’, ‘script’, ‘style’ ) );

// Editor styles
add_theme_support( ‘editor-styles’ );
add_editor_style( ‘assets/css/main.css’ );
}
add_action( ‘after_setup_theme’, ‘ai_gs_theme_setup’ );

// Enqueue scripts and styles
function ai_gs_enqueue_assets() {
wp_enqueue_style( ‘ai-gs-google-fonts’, ‘https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap’, array(), null );
wp_enqueue_style( ‘ai-gs-main’, get_template_directory_uri() . ‘/assets/css/main.css’, array(), AI_GS_VERSION );

wp_enqueue_script( ‘ai-gs-main’, get_template_directory_uri() . ‘/assets/js/main.js’, array( ‘jquery’ ), AI_GS_VERSION, true );

// Localize script for ajax or contact if needed
wp_localize_script( ‘ai-gs-main’, ‘aiGs’, array( ‘ajaxUrl’ => admin_url( ‘admin-ajax.php’ ) ) );
}
add_action( ‘wp_enqueue_scripts’, ‘ai_gs_enqueue_assets’ );

// Register widget areas
function ai_gs_widgets_init() {
register_sidebar( array(
‘name’ => esc_html__( ‘Sidebar’, ‘ai-growth-space’ ),
‘id’ => ‘sidebar-1’,
‘description’ => esc_html__( ‘Add widgets here to appear in your sidebar.’, ‘ai-growth-space’ ),
‘before_widget’ => ‘

‘,
‘after_widget’ => ‘

‘,
‘before_title’ => ‘

‘,
‘after_title’ => ‘

‘,
) );
}
add_action( ‘widgets_init’, ‘ai_gs_widgets_init’ );

// Optional: AJAX contact handler (simple mail) — in production use a proper API or validated mail service
function ai_gs_handle_contact() {
if ( ! isset( $_POST[‘nonce’] ) || ! wp_verify_nonce( $_POST[‘nonce’], ‘ai_gs_contact’ ) ) {
wp_send_json_error( array( ‘message’ => ‘Invalid nonce’ ) );
}

$name = sanitize_text_field( $_POST[‘name’] ?? ” );
$email = sanitize_email( $_POST[’email’] ?? ” );
$message = sanitize_textarea_field( $_POST[‘message’] ?? ” );

if ( empty( $email ) || ! is_email( $email ) ) {
wp_send_json_error( array( ‘message’ => ‘Please provide a valid email.’ ) );
}

$to = get_option( ‘admin_email’ );
$subject = sprintf( ‘New inquiry from %s’, $name ?: $email );
$headers = array( ‘Content-Type: text/html; charset=UTF-8’, ‘From: ‘ . esc_html( $name ) . ‘ <' . esc_html( $email ) . '>‘ );

$body = nl2br( esc_html( $message ) );

$sent = wp_mail( $to, $subject, $body, $headers );

if ( $sent ) {
wp_send_json_success( array( ‘message’ => ‘Thanks — your message was sent.’ ) );
}

wp_send_json_error( array( ‘message’ => ‘Failed to send message.’ ) );
}
add_action( ‘wp_ajax_ai_gs_contact’, ‘ai_gs_handle_contact’ );
add_action( ‘wp_ajax_nopriv_ai_gs_contact’, ‘ai_gs_handle_contact’ );

?>

— FILE: header.php —

>




>


‘primary’, ‘menu_id’ => ‘primary-menu’ ) ); ?>


© AI Growth Space. All Rights Reserved.

‘footer’, ‘menu_id’ => ‘footer-menu’ ) ); ?>



— FILE: index.php —






— FILE: single.php —







— FILE: page.php —


Copyright © 2025 AI GROWTH SPACE | Powered by Astra WordPress Theme

Scroll to Top

Nancy Cardini

Nancy

Need an urgent consultation? Message me on WhatsApp!

Powered by Elementor

Send me a message