/home/bdqbpbxa/demo-subdomains/artcosmetic.goodface.com.ua/wp-content/themes/odrex/functions.php
<?php
// Require settings and helpers
$theme_uri_arr = explode('/', get_template_directory_uri());
$theme_folder_name = end($theme_uri_arr);
$theme_root_path = get_theme_root() . '/' . $theme_folder_name;
require $theme_root_path . '/functions/settings/acf-settings.php';
require $theme_root_path . '/functions/settings/cf7-settings.php';
require $theme_root_path . '/functions/settings/wp-output-html-settings.php';
require $theme_root_path . '/functions/settings/wysiwyg-editor-settings.php';
if (function_exists('pll_current_language')) {
require $theme_root_path . '/functions/settings/polylang-og-settings.php';
}
require $theme_root_path . '/functions/helpers/helper-functions.php';
require $theme_root_path . '/functions/helpers/helper-shortcodes.php';
// Add custom styles to admin panel
function add_custom_admin_styles() {
wp_enqueue_style('admin-panel-custom-styles', get_template_directory_uri() . '/assets-admin/css/admin-panel.css');
}
add_action('admin_enqueue_scripts', 'add_custom_admin_styles');
// Include styles and scripts
function include_styles_and_scripts() {
wp_enqueue_style('swiper-bundle', get_template_directory_uri() . '/assets/css/lib/swiper-bundle.min.css', array(), '1.0.0');
wp_enqueue_style('styles', get_template_directory_uri() . '/assets/css/styles.css', array(), '1.0.0');
wp_enqueue_style('adaptive', get_template_directory_uri() . '/assets/css/adaptive.css', array(), '1.0.0');
wp_deregister_script('jquery');
wp_enqueue_script('jquery', get_template_directory_uri() . '/assets/js/lib/jquery-3.6.0.min.js', array(), '1.0.0', true);
wp_enqueue_script('swiper', get_template_directory_uri() . '/assets/js/lib/swiper-bundle.min.js', array(), '1.0.0', true);
wp_enqueue_script('custom-solutions', get_template_directory_uri() . '/assets/js/custom-solutions.js', array(), '1.0.0', true);
wp_enqueue_script('script', get_template_directory_uri() . '/assets/js/script.js', array(), '1.0.0', true);
}
add_action('wp_enqueue_scripts', 'include_styles_and_scripts');
?>