From 9dfc4c4c8e4554a1dbfb9500923f8ca5f255e555 Mon Sep 17 00:00:00 2001 From: jorge-vitrubio Date: Sun, 14 Jan 2024 16:44:46 +0100 Subject: [PATCH] moved jquery to plugin --- archive-xarxaprod-ajut.php | 17 +++-------------- functions.php | 4 ++-- page-templates/funds-search.php | 23 +++++------------------ search.php | 16 +++------------- 4 files changed, 13 insertions(+), 47 deletions(-) diff --git a/archive-xarxaprod-ajut.php b/archive-xarxaprod-ajut.php index bb3b2b2..625ee33 100644 --- a/archive-xarxaprod-ajut.php +++ b/archive-xarxaprod-ajut.php @@ -21,20 +21,9 @@ get_header();
diff --git a/functions.php b/functions.php index c05e6b9..9182dff 100644 --- a/functions.php +++ b/functions.php @@ -127,7 +127,7 @@ require get_template_directory() . '/inc/widgets-register.php'; /** * Enqueue scripts and styles. */ -function xarxaprod_scripts() { +function xarxaprod_theme_scripts() { wp_enqueue_style( 'xarxaprod-style', get_stylesheet_uri(), array(), _S_VERSION ); //https://developer.wordpress.org/reference/functions/wp_enqueue_style/#comment-2056 //wp_enqueue_style('main-styles', get_template_directory_uri() . '/css/style.css', array(), filemtime(get_template_directory() . '/css/style.css'), false); @@ -146,7 +146,7 @@ function xarxaprod_scripts() { wp_enqueue_script( 'comment-reply' ); } } -add_action( 'wp_enqueue_scripts', 'xarxaprod_scripts' ); +add_action( 'wp_enqueue_scripts', 'xarxaprod_theme_scripts' ); /** * Implement the Custom Header feature. diff --git a/page-templates/funds-search.php b/page-templates/funds-search.php index 903a815..c69724b 100644 --- a/page-templates/funds-search.php +++ b/page-templates/funds-search.php @@ -37,24 +37,11 @@ get_header(); ?>
- + diff --git a/search.php b/search.php index 5004319..3c82651 100644 --- a/search.php +++ b/search.php @@ -22,19 +22,9 @@ get_header(); if ( get_post_type( get_the_ID() ) == 'xarxaprod-ajut'){ ?>