• Resolved lisia

    (@lisia)


    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 4 years, 8 months ago by lisia.
    • This topic was modified 4 years, 8 months ago by lisia.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter lisia

    (@lisia)

    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

    (@guido07111975)

    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

    (@lisia)

    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
    * Copyright author: Steve Matteson
    * Apache License, version 2.0
    * 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

    (@lisia)

    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

    (@guido07111975)

    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

    (@lisia)

    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.