How to deregister scripts all at once

Its already answered on this link <?php //To remove all script from the page function remove_all_scripts() { global $wp_scripts; $wp_scripts->queue = array(); } // to remove all stylesheet add_action(‘wp_print_scripts’, ‘remove_all_scripts’, 100); function remove_all_styles() { global $wp_styles; $wp_styles->queue = array(); } add_action(‘wp_print_styles’, ‘remove_all_styles’, 100); ?> It will remove all the scripts enqueued by standard method. Manual … Read more

Create thumbs/gallery from custom fields

I suggest going with a slider plugin like Layer Slider or this http://www.wonderplugin.com/wordpress-slider/ . You’re right that a plugin search for this kind of topic has the potential to be endless, so look for customizability and extendability in the plugin. Similarly for going the DIY route. There’s no need to reinvent the wheel. Find a … Read more

WordPress version for this autocomplete jQuery code

Shouldn’t you add full path of the ajax.php in your code. If your ajax.php file is in theme folder then you can use get_template_directory_uri() function to define file path. So this should be your code. $(document).ready(function () { var ac_config = { source: “<?php echo get_template_directory_uri(); ?>/ajax.php”, select: function (event, ui) { $(“#facility_name”).val(ui.item.facility_name); }, minLength: … Read more

owl carousel not working after ajax load [duplicate]

The reason you cannot use this by default is because of no conflict. From the Codex: The jQuery library included with WordPress is set to the noConflict() mode (see wp-includes/js/jquery/jquery.js). This is to prevent compatibility problems with other JavaScript libraries that WordPress can link. In the noConflict() mode, the global $ shortcut for jQuery is … Read more

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