CSS being moved too
-
I built a custom theme and using this plugin makes my CSS move to the footer along w/ the JS. Am I doing something wrong? I think I followed the Codex instructions accurately.
Here’s my theme code for CSS and JS.
function tjk_enqueue_styles() { wp_enqueue_style('main-style', get_template_directory_uri() . '/style.css'); wp_enqueue_style('google-webfonts', 'https://fonts.googleapis.com/css?family=Titillium+Web:400,400italic,600,600italic'); } add_action('wp_head', 'tjk_enqueue_styles'); function tjk_enqueue_scripts() { wp_enqueue_script('modernizr', get_template_directory_uri() . '/js/vendor/modernizr.js', array()); wp_enqueue_script('tjk-custom', get_template_directory_uri() . '/js/tjk-custom.js', array('jquery')); } add_action('wp_enqueue_scripts', 'tjk_enqueue_scripts');
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘CSS being moved too’ is closed to new replies.