Hallo,
ich schon wieder mit einem Problem :-)
Um .js und .css auf dem header zu entfernen und im Footer zu laden, hab ich folgendes Script in die function.php eingefügt:
[COLOR=#434343][FONT=Courier New]function jquery_to_footer() {[/FONT][/COLOR]
[COLOR=#434343][FONT=Courier New] remove_action('wp_head', 'wp_print_scripts');[/FONT][/COLOR]
[COLOR=#434343][FONT=Courier New] remove_action('wp_head', 'wp_print_head_scripts', 9);[/FONT][/COLOR]
[COLOR=#434343][FONT=Courier New] remove_action('wp_head', 'wp_enqueue_scripts', 1);[/FONT][/COLOR]
[COLOR=#434343][FONT=Courier New] add_action('wp_footer', 'wp_print_scripts', 5);[/FONT][/COLOR]
[COLOR=#434343][FONT=Courier New] add_action('wp_footer', 'wp_enqueue_scripts', 5);[/FONT][/COLOR]
[COLOR=#434343][FONT=Courier New] add_action('wp_footer', 'wp_print_head_scripts', 5);[/FONT][/COLOR]
[COLOR=#434343][FONT=Courier New]}[/FONT][/COLOR]
[COLOR=#434343][FONT=Courier New]add_action( 'wp_enqueue_scripts', ' jquery_to_footer' );
Das funktioniert soweit auch. Nun möchte ich aber ein Script davon ausschließen, da sonst das Element (j-query)auf der Seite nicht mehr funktioniert. Wie kann man das lösen?
Hat Jemand eine Idee?
Grüße[/FONT][/COLOR]