• Resolved oliviameng

    (@oliviameng)


    Hello!
    I have a question about changing fonts in the theme.
    I have the Easy Google Fonts plugin installed, which I used to change the fonts of paragraphs. However, the titles and the menu don’t change. I also tried editing in the built-in CSS editor and the style.css sheet, but nothing’s changing – and I’m afraid to break the code because I’m a noob. ??
    (I added: “{font-family:”Roboto”, Roboto, regular}” in the css but maybe it is incorrect and that’s why it doesn’t work?)

    The font I would like to use is Roboto, regular.

    Many thanks! I love the theme.

    Regards,
    Olivia

    • This topic was modified 6 years, 11 months ago by oliviameng.
    • This topic was modified 6 years, 11 months ago by oliviameng.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi Olivia,

    Glad you like it! You need to include a target in your CSS code for it to take effect. If you change it to the following (preferably in the Appearance > Customize > Extra CSS editor, as any CSS added to the theme stylesheet will be overwritten when the theme is updated):

    body * { font-family: Roboto, regular; }

    …the font family should change for all of the elements in Hamilton. Let me know how it works out.

    — Anders

    Thread Starter oliviameng

    (@oliviameng)

    It worked! Thank you so much! ??

    Hello !
    Is the font need to be installed in to the computer ?
    I installed Easy Google Fonts plugin, tried to copy/paste the CSS code but it’s not working…However, it is working with fonts like Futura or impact for example.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing font of title and menu’ is closed to new replies.