{"id":243,"date":"2016-09-14T01:42:16","date_gmt":"2016-09-14T01:42:16","guid":{"rendered":"http:\/\/www.millservices.co.uk\/blog\/?p=243"},"modified":"2016-10-03T04:05:28","modified_gmt":"2016-10-03T04:05:28","slug":"remove-google-fonts-twenty-sixteen","status":"publish","type":"post","link":"https:\/\/www.millservices.co.uk\/blog\/wordpress\/remove-google-fonts-twenty-sixteen\/","title":{"rendered":"How To Remove Google Fonts From The Twenty Sixteen WordPress Theme"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-245\" src=\"https:\/\/www.millservices.co.uk\/blog\/wp-content\/uploads\/removefonts.jpg\" alt=\"remove Google Fonts from Twenty Sixteen\" width=\"470\" height=\"267\" srcset=\"https:\/\/www.millservices.co.uk\/blog\/wp-content\/uploads\/removefonts.jpg 470w, https:\/\/www.millservices.co.uk\/blog\/wp-content\/uploads\/removefonts-300x170.jpg 300w\" sizes=\"auto, (max-width: 470px) 85vw, 470px\" \/><\/p>\n<p>Short and sweet &#8211; you don&#8217;t want your custom Twenty Sixteen theme using bloated old Google Fonts?<\/p>\n<p>Simply add this function to the functions.php of your child theme.<\/p>\n<pre><code>function twentysixteen_fonts_url() {\r\n   $fonts_url = '';\r\n   return $fonts_url;\r\n}<\/code><\/pre>\n<p>Don&#8217;t wrap it in an <em>if ( ! function_exists( &#8216;twentysixteen_fonts_url&#8217; ) )<\/em> because you&#8217;re overriding the function from the main theme. It does exist, and you want to override it.<!--more--><\/p>\n<p>You can just hack the main themes function file if you like, but you&#8217;ll lose the changes if you apply any theme updates. Which is why you use a <a href=\"https:\/\/codex.wordpress.org\/Child_Themes\">child theme<\/a>, right?<\/p>\n<h2>Won&#8217;t this make Twenty Sixteen look all ugly?<\/h2>\n<p>No, the font stack will simply fall back to using Goergia and Helvetica Neue.<\/p>\n<p>Or you can just customise these to your own preference of course.<\/p>\n<h2>How Do I Remove Fonts Without Writing Code?<\/h2>\n<p>There are a couple of plugins that will do this for you, just check the <a href=\"https:\/\/wordpress.org\/plugins\/search.php?type=term&amp;q=remove+google+fonts\">Plugins Directory here<\/a>.<\/p>\n<p>These will of course work for other themes too.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Short and sweet &#8211; you don&#8217;t want your custom Twenty Sixteen theme using bloated old Google Fonts? Simply add this function to the functions.php of your child theme. function twentysixteen_fonts_url() { $fonts_url = &#8221;; return $fonts_url; } Don&#8217;t wrap it in an if ( ! function_exists( &#8216;twentysixteen_fonts_url&#8217; ) ) because you&#8217;re overriding the function from &hellip; <a href=\"https:\/\/www.millservices.co.uk\/blog\/wordpress\/remove-google-fonts-twenty-sixteen\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How To Remove Google Fonts From The Twenty Sixteen WordPress Theme&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-243","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/posts\/243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=243"}],"version-history":[{"count":10,"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/posts\/243\/revisions"}],"predecessor-version":[{"id":287,"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/posts\/243\/revisions\/287"}],"wp:attachment":[{"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}