From 54922ca5f1901aa370282b7801d618064694ad1b Mon Sep 17 00:00:00 2001 From: "Jorge vitrubio.net" Date: Mon, 1 Apr 2024 14:51:41 +0200 Subject: [PATCH] added dashicons to front-end --- functions.php | 3 --- inc/theme-css-scripts.php | 6 +++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/functions.php b/functions.php index 81d133d..9ac7a47 100644 --- a/functions.php +++ b/functions.php @@ -121,13 +121,11 @@ add_action( 'after_setup_theme', 'xarxaprod_content_width', 0 ); * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ - require get_template_directory() . '/inc/widgets-register.php'; /** * Enqueue scripts and styles. */ - require get_template_directory() . '/inc/theme-css-scripts.php'; /** @@ -170,7 +168,6 @@ require get_template_directory() . '/inc/user-role-capabilities-mod.php'; /** * Functions to personalize the_archive_title() function */ - require get_template_directory() . '/inc/archive-title.php'; /** diff --git a/inc/theme-css-scripts.php b/inc/theme-css-scripts.php index 569ec2d..f96aedd 100644 --- a/inc/theme-css-scripts.php +++ b/inc/theme-css-scripts.php @@ -15,7 +15,11 @@ if ( ! function_exists( 'xarxaprod_theme_css_scripts' ) ){ //wp_deregister_script( 'jquery' ); // register our jQuery minified from theme directory //wp_enqueue_script('jquery', get_template_directory_uri().'/js/jquery.min.js', array(),'3.7.1',true); - + + // enqueue dashicons to load on the front end + // used by maps + wp_enqueue_style( 'dashicons' ); + // navigation scripts wp_enqueue_script( 'xarxaprod-navigation', get_template_directory_uri() . '/js/navigation.js', array(), _S_VERSION, true );