-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
42 lines (35 loc) · 1.78 KB
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
function theme_add_scripts()
{
wp_enqueue_style('bootstrap-css', 'https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css');
wp_enqueue_style('bootstrap-icons','https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css');
wp_enqueue_style('fontawesome', 'https://cdn.jsdelivr.net/gh/hung1001/font-awesome-pro@4cac1a6/css/all.css');
wp_enqueue_style('animate', 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.min.css');
wp_enqueue_style('style-css', get_template_directory_uri() . '/style.css');
wp_enqueue_script('scripts-js', get_template_directory_uri() . '/js/scripts.js');
wp_enqueue_script('bootstrap-js', 'https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js');
wp_enqueue_script('vuejs', 'https://unpkg.com/vue@3/dist/vue.global.js');
wp_enqueue_script('jqueryPersonalizado', 'http://code.jquery.com/jquery-1.11.3.min.js');
wp_enqueue_script('parallax', 'https://cdn.jsdelivr.net/parallax.js/1.4.2/parallax.min.js');
wp_enqueue_script('letering', 'https://cdnjs.cloudflare.com/ajax/libs/lettering.js/0.6.0/jquery.lettering.min.js');
wp_enqueue_script('textillate', 'https://cdnjs.cloudflare.com/ajax/libs/textillate/0.4.0/jquery.textillate.min.js');
}
add_action('wp_enqueue_scripts', 'theme_add_scripts');
function theme_add_config()
{
register_nav_menus(
array(
'main_menu' => 'Main Menu'
)
);
add_theme_support('custom-logo', array(
'flex-height' => false,
'flex-width' => true
));
add_theme_support('post-thumbnails');
}
add_action('after_setup_theme', 'theme_add_config', 0);
function my_jquery_enqueue() {
wp_deregister_script( 'jquery' );
}
add_action( 'wp_enqueue_scripts', 'my_jquery_enqueue', 0);