Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ---Homepage quicksearch autofill---*/
- add_action( 'genesis_meta', 'homepage_autofill_quicksearch' );
- function homepage_autofill_quicksearch() {
- if(is_home() )
- //*add script
- wp_register_script( 'dsidx-autocomplete', get_template_directory_uri() . '/wp-content/plugins/dsidxpress/js/autocomplete.js', array(), '2.0.11', 'all' );
- wp_enqueue_script( 'dsidx-autocomplete' );
- //add css
- wp_register_style( 'dsidx-autocomplete-css', get_template_directory_uri() . '/wp-content/plugins/dsidxpress/css/jquery-ui-1.8.21-autocomplete.css', array(), '2.0.21', 'all' );
- wp_enqueue_style( 'dsidx-autocomplete-css' );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement