How can I add a new lib path without call each one on the header?

function my_custom_enqueue_scripts() { if ($handle = opendir(get_template_directory() . ‘/custom-stylesheets’)) { $i = 1; while (false !== ($file = readdir($handle))) { if ($file != “.” && $file != “..”) { wp_register_style(‘custom_stylesheets_’ . $i, get_template_directory_uri() . ‘/custom-stylesheets/’ . $file); $i++; } } closedir($handle); } } add_action(‘wp_enqueue_scripts’, ‘my_custom_enqueue_scripts’); Add code to a file: functions.php Styles should be located: … Read more

How to use jQuery plugin

If you don’t need js datepicker then no need to keep that anymore. Use your desired plugin. Make sure your theme based on bootstrap latest version.

jQuery Plugin Uncaught TypeError: jQuery(…).slider is not a function

You can try this code: add_action(“wp_enqueue_scripts”, “my_jquery_enqueue”, 11); function my_jquery_enqueue() { wp_deregister_script(‘jquery’); wp_register_script(‘jquery’, “//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js”, false, null); wp_enqueue_script(‘jquery’); wp_enqueue_script(‘bootstrap-slider’, ‘CDN Url’, array(‘jquery’), false, null); } What I am doing is deregistering the WP jQuery script. Then I’ll add a new jQuery script with the CDN. I will enqueue this script and then enqueue your bootstrap slider … Read more

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