include script that depends on modernizr?

I assume these are child theme scripts because of your function name: twentyfourteen_child_scripts() When loading scripts from your child themes functions file you should use: wp_enqueue_script( ‘$handle’, get_bloginfo( ‘stylesheet_directory’ ) . ‘/js/filename.js’, array( ‘jquery’ ), ‘1.0.0’ ); Or use add_action( ‘wp_enqueue_scripts’, ‘child_add_modernizr_scripts’ ); function child_add_modernizr_scripts() { wp_register_script(‘modernizr’, get_stylesheet_directory_uri() . ‘/js/modernizr.js’, false, ‘1.0’, true ); wp_enqueue_script( … Read more

How to call wp_localize_script() after the script?

Well, you have to call wp_licalize_script after registering the script, because you need handle of that script… And of course you can’t localize something that doesn’t exist… Here’s some example: if ( !function_exists(‘pt_scripts’) ): function pt_scripts () { wp_register_style( ‘style’, get_stylesheet_uri(), null, ‘1.3.1’, ‘all’ ); wp_enqueue_style( ‘style’ ); wp_register_script( ‘scripts’, get_template_directory_uri() . ‘/script.js’, array(‘jquery’), ‘1.3.0’, … Read more

wp_register_script was called incorrectly

You need to hook your function into either wp_enqueue_scripts, admin_enqueue_scripts, or init. wp_footer is too late to enqueue scripts; they need to be enqueued before the wp_head() function is called. The fifth argument of the wp_enqueue_scripts() function, when set to true, will load the script in the page footer instead of header. From the Codex: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)