What does this error mean?
-
I am converting a bootstrap site into a wp theme (first one) using xampp.
The site looks like it should bar a few errors. The first error I get is this. I don’t understand what it means.
Also if I using wp_enqueue in my function.php do I have to use the @import in my stylesheet? I am using both.<link href=" <b>Warning</b>: Missing argument 1 for wp_enqueue_style(), called in C:\xampp\htdocs\wordpress\wp-content\themes\salon\header.php on line 14 and defined in <b>C:\xampp\htdocs\wordpress\wp-includes\functions.wp-styles.php</b> on line <b>158</b> /css/style.css" rel="stylesheet" type="text/css"></strong> <strong>This is line 14 in header.php</strong> <link href="<?php wp_enqueue_style(); ?>/css/style.css" rel="stylesheet" type="text/css"> <strong>This is what I have on line 158 in functions.wp-styles.php</strong> function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = 'all' ) { global $wp_styles; if ( ! is_a( $wp_styles, 'WP_Styles' ) ) { if ( ! did_action( 'init' ) ) _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' ); $wp_styles = new WP_Styles(); } if ( $src ) { $_handle = explode('?', $handle); $wp_styles->add( $_handle[0], $src, $deps, $ver, $media ); } $wp_styles->enqueue( $handle ); }
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘What does this error mean?’ is closed to new replies.