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 );