Title: Changing Google Font
Last modified: March 23, 2020

---

# Changing Google Font

 *  Resolved [lisia](https://wordpress.org/support/users/lisia/)
 * (@lisia)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/changing-google-font/)
 * Hello Guido! thanks for updating this wonderful theme.
    I would like to change
   the Google Font. I thought, I have to change the function.php and the style.css(
   of course in a child-theme)
 * **function.php:**
 *     ```
       // Font family
       function onecolumn_font_url() {
       	$font_url = '//fonts.googleapis.com/css?family=Roboto';
       	return esc_url_raw( $font_url );
       }
       ```
   
 * **style.css:**
 *     ```
       /* BODY */
       body {background:#fff; color:#333; font-family: 'Roboto', sans-serif; font-size:16px; line-height:1.5; text-align:left; word-wrap:break-word;}
       ```
   
 * Unfortunately it doesn’t work. Anything else to change?
 * Best regards, lisia
    -  This topic was modified 6 years, 3 months ago by [lisia](https://wordpress.org/support/users/lisia/).
    -  This topic was modified 6 years, 3 months ago by [lisia](https://wordpress.org/support/users/lisia/).

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [lisia](https://wordpress.org/support/users/lisia/)
 * (@lisia)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/changing-google-font/#post-12572690)
 * Unfortunately it doesn’t work. Anything else to change?
    Mistake of a beginner:
   I have to refresh the cache. Thank you – it is working! One more remark: the 
   readme.txt must be changed, too.
 * Best regards, lisia
 *  Theme Author [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/changing-google-font/#post-12575961)
 * Great you’ve solved it yourself.
 * But what do you mean with:
 * > One more remark: the readme.txt must be changed, too.
 * Guido
 *  Thread Starter [lisia](https://wordpress.org/support/users/lisia/)
 * (@lisia)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/changing-google-font/#post-12576005)
 * Hi Guido!
    I am happy with my work today. I even got it, to include the googlefont
   locally without a plugin, but with a deregister-code in my childthemes function.
   php.
 * My remark about readme.txt.
    In your readme.txt you wrote:
 * == Copyright ==
    = Fonts = * Font: Open Sans * Source: [https://fonts.google.com/specimen/Open+Sans](https://fonts.google.com/specimen/Open+Sans)*
   Copyright author: Steve Matteson * Apache License, version 2.0 * [https://www.apache.org/licenses/LICENSE-2.0.html](https://www.apache.org/licenses/LICENSE-2.0.html)
 * I guess, I have to change this for my used googlefont????
 * Best regards, Lisia
 *  Thread Starter [lisia](https://wordpress.org/support/users/lisia/)
 * (@lisia)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/changing-google-font/#post-12576025)
 * And I even replaced the word ‘Menu’ in the mobile layout with an hamburger-sign.
   After lots of hours I found a solution to replace ‘Menu’ with ☰ in the header.
   php. I also removed the part with ‘+’
    Line 38: `<div class="mobile-nav-toggle"
   ><?php _e( '☰', 'onecolumn' ); ?></div>` I think, it is not state of the art,
   but it works :- ). Thanks again for your theme. Best regards, Lisia
 *  Theme Author [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/changing-google-font/#post-12581782)
 * Hi lisia,
 * You don’t have to change the readme as well, this file is only for reference,
   so it has no function.
 * About the hamburger symbol, you can check it in most commonly used browsers (
   increase screen size to 300%) and if the symbol is being displayed properly it
   should work fine in mobile screen as well.
 * Guido
 *  Thread Starter [lisia](https://wordpress.org/support/users/lisia/)
 * (@lisia)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/changing-google-font/#post-12583369)
 * Thank you for your support.
    Best regards, lisia

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Changing Google Font’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/onecolumn/8.3/screenshot.png)
 * OneColumn
 * [Support Threads](https://wordpress.org/support/theme/onecolumn/)
 * [Active Topics](https://wordpress.org/support/theme/onecolumn/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/onecolumn/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/onecolumn/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [lisia](https://wordpress.org/support/users/lisia/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/changing-google-font/#post-12583369)
 * Status: resolved