S
S
Sergey Burduzha2018-03-19 15:51:15
WordPress
Sergey Burduzha, 2018-03-19 15:51:15

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' );

I added everything before the title tag. <php wp_head();?>
Well, before the footer, the same thing, only instead of header, footer.
Here is the structure of the project
5aafb172822db760071336.png
I understand that I screwed up, but where?
Here is the github link https://github.com/seriiserii825/wp_extended.loc
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Burduzha, 2018-03-19
@serii81

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 question

Ask a Question

731 491 924 answers to any question