Closed ywvz closed 10 years ago
Hello! Thanks for the great framework!
I have a child theme and I want to remove google fonts and parent styles from the header, but don't know how..
Here is my function: (reverie-child-theme/function.php)
function remove_parent_styles() { wp_dequeue_style( 'reverie-foundation-stylesheet' ); // OK wp_dequeue_style( 'reverie-stylesheet' ); // OK wp_dequeue_style( 'google-font-css' ); // nothing happens } add_action( 'wp_enqueue_scripts', 'remove_parent_styles',20);
I want to remove this line too, but nothing happens:
link rel='stylesheet' id='google-font-css' href='http://fonts.googleapis.com/css?family=Open+Sans%3A300%2C400%2C600%2C700%7CLora%3A400%2C700%7CDroid+Sans+Mono' type='text/css' media='all'
Sorry for my English.
I found the solution. I spent 3 hours to find this.. (my fault) Thanks anyway.
function remove_fonts() { wp_dequeue_style( 'google-font' ); } add_action('wp_print_styles', 'remove_fonts');
Hello! Thanks for the great framework!
I have a child theme and I want to remove google fonts and parent styles from the header, but don't know how..
Here is my function: (reverie-child-theme/function.php)
function remove_parent_styles() { wp_dequeue_style( 'reverie-foundation-stylesheet' ); // OK wp_dequeue_style( 'reverie-stylesheet' ); // OK wp_dequeue_style( 'google-font-css' ); // nothing happens } add_action( 'wp_enqueue_scripts', 'remove_parent_styles',20);
I want to remove this line too, but nothing happens:
link rel='stylesheet' id='google-font-css' href='http://fonts.googleapis.com/css?family=Open+Sans%3A300%2C400%2C600%2C700%7CLora%3A400%2C700%7CDroid+Sans+Mono' type='text/css' media='all'
Sorry for my English.