Trying to enqueue in functions.php
-
Hi all, spent all day on this, following the treehouse tutorial and its not working. I created this code in functions.php:
<?php function fcd_theme_styles() { wp_enqueue_style( 'style_css', get_template_directory_uri() . 'style') ; wp_enqueue_style( 'style_css', get_template_directory_uri() . '/css/style') ; wp_enqueue_style( 'boostrap_css', get_template_directory_uri() . '/css/bootstrap') ; wp_enqueue_style( 'style_css', '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i,700,900') ; } add_action('wp_enqeueu_scripts', 'fcd_theme_styles'); function fcd_theme_js() { wp_enqeueu_script('', get_template_directory_uri() . '/js/core.min.js', '','', false ); wp_enqeueu_script('', get_template_directory_uri() . '/js/html5shiv.min.js', '','', false ); wp_enqeueu_script('', get_template_directory_uri() . '/js/pointer-events.min.js', '','', false ); wp_enqeueu_script('', get_template_directory_uri() . '/js/script.js', '','', false ); add_action ( 'wp_enqeueu_scripts', 'fcd_theme_js'); } ?>I also added
<?php wp_head(); ?>to header.php, and<?php wp_footer(); ?>to footer.php. I cannot for the life of me figure out why my CSS and Javascript files are not loading.- This topic was modified 8 years, 2 months ago by .
- This topic was modified 8 years, 2 months ago by .
The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Trying to enqueue in functions.php’ is closed to new replies.