• Resolved pandafromuganda

    (@pandafromuganda)


    Hello,

    Recently I have played with changing site’s theme, and after reverting to Hestia, default font themes got overriden. I know font used for headers was Roboto, and the subtitle one was Roboto Slab. I changed header font to Roboto in main site appereance section, but I don’t know how to change subtitle one to Roboto Slab.

    How can I revert font settings to default ones?
    Or how can I set the subtitle font only to Roboto Slab?

    Any help will be highly appreciated!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @pandafromuganda,

    Have you tried changing the fonts from the font size controls in Appearance > Customize > Appearance Settings > Typography and using the reset button?

    https://prnt.sc/k5inas

    Let me know.
    Regards,
    Rodica

    Thread Starter pandafromuganda

    (@pandafromuganda)

    Hello @rodicaelena, I’m afraid there is no reset button in that section. Setting fonts to “default” loads wrong fonts, while in font size there is only reset button for font size.

    Hi @pandafromuganda,

    I just tried changing both font family options to the default option and everything seems ok. Could you please let me know exactly which options in the theme are not changing the font-family property, and how did you change the font family initially?

    Regards,
    Rodica

    Hi.
    Maybe the bug/solution I found is same as @pandafromuganda problem and solve it also.

    I noticed that in /hestia/inc/customizer/controls/custom-controls/font-selector/class-hestia-font-selector.php line 66 the data-option for Default font is also translation ready.
    <span class="hestia-fs-option" data-option="<?php esc_html_e( 'Default', 'hestia' ); ?>"><?php esc_html_e( 'Default', 'hestia' ); ?></span>

    So when the site language is different than English the value stored is not “Default” but the translated string. So when the site is for ex. in Greek and “Προεπιλογ?” (which is the Greek word for Default) font are selected the theme try to use “Προεπιλογ?” font, which doesn’t exists.

    The solution I found is to change /hestia/inc/customizer/controls/custom-controls/font-selector/class-hestia-font-selector.php line 66 to
    <span class="hestia-fs-option" data-option="Default"><?php esc_html_e( 'Default', 'hestia' ); ?></span>

    Please concided fixing it, cause this setting also affects all Hestia childs themes.

    Thanks in advance
    Lena

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Default fonts’ is closed to new replies.