Witam, mam problem z podpieciem arkusza stylów i js. Nie mam pojęcia gdzie robię błąd
<?php
/**
* Generating constant containing the absolute path of the Business-Grow Theme Directive
* Used to include PHP files
*/
if (!defined('ONEPAGE_DIR')) {
define('ONEPAGE_DIR', get_template_directory() . '/');
}
/**
* Generating constant containing the relative path of the Business-Grow Theme Directive
* Used to enqueue CSS and Javascript files
*/
if (!defined('ONEPAGE_DIR_URI')) {
define('ONEPAGE_DIR_URI', get_template_directory_uri() . '/');
}
/**
* Including all required style files in the theme
*/
function moje_styles(){
wp_enqueue_style( 'parent-style', ONEPAGE_DIR_URI.'style.css');
wp_enqueue_style( 'moj-css', ONEPAGE_DIR_URI.'assets/css/my-css.css');
wp_enqueue_style( 'owl-carousel', ONEPAGE_DIR_URI.'assets/owlcarousel/assets/owl.carousel.css');
wp_enqueue_style( 'owl-carousel-min', ONEPAGE_DIR_URI.'assets/owlcarousel/assets/owl.carousel.min.css');
wp_enqueue_style( 'owl-theme-default', ONEPAGE_DIR_URI.'assets/owlcarousel/assets/owl.theme.min.css');
wp_enqueue_style( 'owl-theme-green', ONEPAGE_DIR_URI.'assets/owlcarousel/assets/owl.theme.default.css');
wp_enqueue_style( 'owl-theme-green2', ONEPAGE_DIR_URI.'assets/owlcarousel/assets/owl.theme.green.css');
wp_enqueue_style( 'bootstrap-one-page', ONEPAGE_DIR_URI.'assets/owlcarousel/assets/owl.theme.green.min.css');
}
add_action('wp_enqueue_scripts', 'moje_styles');
function scripts() {
wp_enqueue_script('jquery-owl', ONEPAGE_DIR_URI.'assets/owlcarousel/jquery.min.js', false);
wp_enqueue_script( 'my-script', ONEPAGE_DIR_URI.'assets/js/script.js', array('jquery'), true);
wp_enqueue_script( 'owlcarousel', ONEPAGE_DIR_URI.'assets/owlcarousel/owl.carousel.js', array( 'jquery' ), false, true );
wp_enqueue_script( 'owlcarousel-init', ONEPAGE_DIR_URI.'assets/owlcarousel/owl.carousel.js', array( 'jquery' ), false, true );
}
add_action( 'wp_enqueue_scripts', 'scripts' );
?>