27 lines
940 B
PHP
Executable File
27 lines
940 B
PHP
Executable File
<?php
|
|
function inc_scripts () {
|
|
wp_enqueue_style ('theme-style', get_template_directory_uri().'/style.css');
|
|
wp_enqueue_script('jquery-script', get_template_directory_uri().'/js/jquery.min.js');
|
|
wp_enqueue_script('bootstrap-script', get_template_directory_uri().'/js/bootstrap.min.js');
|
|
wp_enqueue_script('own-script', get_template_directory_uri().'/js/main.js');
|
|
}
|
|
add_action( 'wp_enqueue_scripts', 'inc_scripts' );
|
|
|
|
function register_my_menu() {
|
|
register_nav_menu('main-menu',__( 'Main Menu' ));
|
|
register_nav_menu('footer-menu',__( 'Footer Menu' ));
|
|
}
|
|
add_action( 'init', 'register_my_menu' );
|
|
|
|
add_theme_support('post-thumbnails');
|
|
|
|
function nav_replace_wpse_189788($item_output, $item, $args) {
|
|
# var_dump($item_output, $item);
|
|
if($item->post_title == '<br/>') {
|
|
return '<br/>';
|
|
}
|
|
return $item_output;
|
|
}
|
|
add_action('walker_nav_menu_start_el','nav_replace_wpse_189788',null,3);
|
|
?>
|