Home › Forums › Support › Remove Google fonts This topic has 4 replies, 3 voices, and was last updated 4 years, 7 months ago by Leo. Viewing 5 posts - 1 through 5 (of 5 total) Author Posts August 30, 2019 at 8:54 pm #997600 Kim Hi, I’ve tried to remove the Google fonts from the customizer (as said in this post https://docs.generatepress.com/article/remove-google-fonts/). When I try to activate it I always get this error message: Cannot redeclare tu_remove_google_fonts() (previously declared in /home/wp/disk/wordpress/wp-content/plugins/code-snippets/php/snippet-ops.php(361) : eval()’d code:3) It is causing a fatal error in line 4. Am I doing something wrong? August 30, 2019 at 8:58 pm #997601 LeoStaff Customer Support Hi there, Try this instead: add_action( 'admin_init', 'tu_remove_google_fonts_customizer' ); function tu_remove_google_fonts_customizer() { add_filter( 'generate_google_fonts_array', '__return_false' ); } Let me know if this helps π August 30, 2019 at 9:10 pm #997606 Kim Awesome! Works perfectly π August 30, 2019 at 10:30 pm #997623 Jim This code always breaks my customiser. August 31, 2019 at 7:47 am #997818 LeoStaff Customer Support No problem π Author Posts Viewing 5 posts - 1 through 5 (of 5 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In