Sid Gifari File Manager
🏠 Root
/
home
/
alianzatejedoras
/
atelierdevida
/
wp-content
/
themes
/
elessi-theme
/
📝 Editing: functions.php
<?php /* * * @package nasatheme - elessi-theme */ defined('NASA_VERSION') or define('NASA_VERSION', '5.1.4'); /* Define DIR AND URI OF THEME */ define('ELESSI_THEME_PATH', get_template_directory()); define('ELESSI_CHILD_PATH', get_stylesheet_directory()); define('ELESSI_THEME_URI', get_template_directory_uri()); /* Global $content_width */ if (!isset($content_width)){ $content_width = 1200; /* pixels */ } /** * Options theme */ require ELESSI_THEME_PATH . '/options/nasa-options.php'; /** * After Setup theme */ add_action('after_setup_theme', 'elessi_setup'); if (!function_exists('elessi_setup')) : function elessi_setup() { global $nasa_opt; /** * Load Text Domain */ load_theme_textdomain('elessi-theme', ELESSI_THEME_PATH . '/languages'); /** * Theme Support */ add_theme_support('woocommerce'); add_theme_support('automatic-feed-links'); add_theme_support('post-thumbnails'); add_theme_support('title-tag'); add_theme_support('custom-background'); // add_theme_support('custom-header'); /** * Remove Theme Support */ remove_theme_support('wc-product-gallery-lightbox'); remove_theme_support('wc-product-gallery-zoom'); /** * For WP 5.8 */ if (!isset($nasa_opt['block_editor_widgets']) || !$nasa_opt['block_editor_widgets']) { remove_theme_support('widgets-block-editor'); } /** * Register Menu locations */ register_nav_menus( array( 'primary' => esc_html__('Main Menu', 'elessi-theme'), 'vetical-menu' => esc_html__('Vertical Menu', 'elessi-theme'), 'topbar-menu' => esc_html__('Top Menu - Only show level 1', 'elessi-theme') ) ); /** * Set Theme Options */ if (!did_action('nasa_set_options')) { do_action('nasa_set_options'); } /** * Register Font family */ require ELESSI_THEME_PATH . '/cores/nasa-register-fonts.php'; /** * Libraries of theme */ require ELESSI_THEME_PATH . '/cores/nasa-custom-wc-ajax.php'; require ELESSI_THEME_PATH . '/cores/nasa-dynamic-style.php'; require ELESSI_THEME_PATH . '/cores/nasa-widget-functions.php'; require ELESSI_THEME_PATH . '/cores/nasa-theme-options.php'; require ELESSI_THEME_PATH . '/cores/nasa-theme-functions.php'; require ELESSI_THEME_PATH . '/cores/nasa-woo-functions.php'; require ELESSI_THEME_PATH . '/cores/nasa-woo-actions.php'; require ELESSI_THEME_PATH . '/cores/nasa-shop-ajax.php'; require ELESSI_THEME_PATH . '/cores/nasa-theme-headers.php'; require ELESSI_THEME_PATH . '/cores/nasa-theme-footers.php'; require ELESSI_THEME_PATH . '/cores/nasa-yith-wcwl-ext.php'; require ELESSI_THEME_PATH . '/cores/nasa-wishlist.php'; /** * Dokan support */ if (defined('NASA_WOO_ACTIVED') && NASA_WOO_ACTIVED && defined('NASA_DOKAN_ACTIVED') && NASA_DOKAN_ACTIVED) { require ELESSI_THEME_PATH . '/cores/nasa-dokan-functions.php'; } /** * Outdate functions */ require ELESSI_THEME_PATH . '/cores/nasa-outdate-functions.php'; /** * Includes widgets */ require ELESSI_THEME_PATH . '/widgets/wg-nasa-recent-posts.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-product-categories.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-product-brands.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-product-filter-price.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-product-filter-price-list.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-product-filter-variations.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-tag-cloud.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-product-filter-status.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-product-filter-multi-tags.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-reset-filter.php'; } endif;
💾 Save
❌ Cancel
Sid Gifari File Manager v1.0 | Terminal Auto-Sync Enabled | Current Path: /home/alianzatejedoras/atelierdevida/wp-content/themes/elessi-theme