Answer the question
In order to leave comments, you need to log in
Why are styles not connected and creaking in wordpress?
I work on a local server in ubuntu.
Here is the connection of scripts and styles in function.php
function load_scripts_style()
{
wp_enqueue_style( 'style', get_stylesheet_uri() );
wp_enqueue_style('flexslider', get_template_directory_uri().'/flexslider.css');
wp_enqueue_style('jquery-ui-css', get_template_directory_uri().'/css/jquery-ui-1.9.2.custom.css');
wp_enqueue_script( 'jquery-custom', get_template_directory_uri().'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' );
wp_enqueue_script( 'jquery.flexslider', get_template_directory_uri().'/js/jquery.flexslider.js' );
wp_enqueue_script( 'jquery.easyng', get_template_directory_uri().'/js/jquery.easing.js' );
wp_enqueue_script( 'jquery.mousewheel', get_template_directory_uri().'/js/jquery.mousewheel.js' );
wp_enqueue_script( 'demo', get_template_directory_uri().'/js/demo.js' );
wp_enqueue_script( 'jquery-ui-custom', get_template_directory_uri().'/js/jquery-ui-1.9.2.custom.js' );
}
add_action( 'wp_enqueue_scripts', 'load_scripts_style' );
<php wp_head();?>
Answer the question
In order to leave comments, you need to log in
I found everything, instead of function it was necessary to register functions. What an annoying mistake.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question