Can I use Google fonts for H1

  • Posted in : TheBlogger
  • alexchan
    Participant

    Hi all

    I am going to use this Google Fonts url(‘https://fonts.googleapis.com/css?family=Dancing+Script|Lato’);

    and it works fine for body text by adding the following code.
    * {
    font-family: ‘Lato’, ‘Microsoft JhengHei’, sans-serif;
    }

    However, the H1 CSS can’t be overrided and it still using the fonts under them -> customizing -> general, can I override it?

    Regards
    Alex

    serkan
    Moderator

    Hi Alex,
    The Dancing script google font family is possible to choose from the theme options already. You do not have to customize for that. But if you use a different font family, you can use it as follows;

    h1, .entry-title { font-family: 'Roboto'; }

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register