CoolFace
Apppublic

edmondfm/fiberfrenzy-wp-theme

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
functions.php44 linesDownload Raw Back to root
1```php2<?php3/**4 * FiberFrenzy functions and definitions5 */6 7if (!defined('_S_VERSION')) {8    define('_S_VERSION', '1.0.0');9}10 11function fiberfrenzy_setup() {12    // Add theme support13    add_theme_support('title-tag');14    add_theme_support('post-thumbnails');15    add_theme_support('html5', array('search-form', 'comment-form', 'comment-list', 'gallery', 'caption'));16    add_theme_support('custom-logo');17    18    // Register menus19    register_nav_menus(array(20        'primary' => esc_html__('Primary Menu', 'fiberfrenzy'),21        'footer' => esc_html__('Footer Menu', 'fiberfrenzy')22    ));23}24add_action('after_setup_theme', 'fiberfrenzy_setup');25 26// Enqueue theme scripts and styles27function fiberfrenzy_scripts() {28    // Main stylesheet29    wp_enqueue_style('fiberfrenzy-style', get_stylesheet_uri(), array(), _S_VERSION);30    31    // Google Fonts32    wp_enqueue_style('fiberfrenzy-google-fonts', 'https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');33    34    // Feather Icons35    wp_enqueue_script('feather-icons', 'https://unpkg.com/feather-icons', array(), '4.29.0', true);36    37    // Main JavaScript38    wp_enqueue_script('fiberfrenzy-script', get_template_directory_uri() . '/js/main.js', array(), _S_VERSION, true);39}40add_action('wp_enqueue_scripts', 'fiberfrenzy_scripts');41 42// Customizer additions43require get_template_directory() . '/inc/customizer.php';44```