-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
52 lines (44 loc) · 2 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
43
44
45
46
47
48
49
50
51
52
<?php
// Register Custom Navigation Walker
require_once('wp_bootstrap_navwalker.php');
// Funktion für MENU
function register_my_menus() {
register_nav_menus(
array('menu' => __( 'Header Menu' ) )
);
}
// Funktion für MENU ENDE
add_action ('init', 'register_my_menus');
// Funktion für Widges
function widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar'),
'id' => 'sidebar-widget-area',
'description' => __( 'Bereich für Widgets innerhalb der Sidebar' ),
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
'after_widget' => '</li>',
'before_title' => '<strong class="widget-title">',
'after_title' => '</strong>',
) );
register_sidebar( array(
'name' => __( 'Footer'),
'id' => 'footer-widget-area',
'description' => __( 'Bereich für Widgets innerhalb des Footer'),
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
'after_widget' => '</li>',
'before_title' => '<strong class="widget-title">',
'after_title' => '</strong>',
) );
}
add_action( 'widgets_init', 'widgets_init' );
// Funktion für Widges ENDE
function add_my_own_js() {
wp_enqueue_script( 'jquery min js', get_stylesheet_directory_uri() . '/assets/js/jquery-3.1.1.js' );
wp_enqueue_script( 'boot min js', get_stylesheet_directory_uri() . '/assets/js/bootstrap.min.js' );
wp_enqueue_script( 'boot min js', get_stylesheet_directory_uri() . '/assets/analytics/analytics.js' );
wp_enqueue_script( 'ga js', get_stylesheet_directory_uri() . '/assets/ws1/ga.js' );
//wp_enqueue_script( 'accordion min js', get_stylesheet_directory_uri() . '/assets/ws1/jquery.cbpNTAccordion.min.js' );
//wp_enqueue_script( 'moment js', get_stylesheet_directory_uri() . '/assets/ws1/moment.js' );
//wp_enqueue_script( 'custom js', get_stylesheet_directory_uri() . '/assets/ws1/custom.js' );
}
add_action( 'wp_enqueue_scripts', 'add_my_own_js' );