Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #4098
    AiD
    Participant

    Hi,

    I want to change font for site title and description.

    Can you tell me what I should add to css box to import custom one from google fonts ?

    <link href=’http://fonts.googleapis.com/css?family=Orbitron&#8217; rel=’stylesheet’ type=’text/css’>

    font-family: ‘Orbitron’, sans-serif;

    and for change I should add :

    #site-description {

    font-family: fontname;

    }

    and

    #site-title {

    font-family: fontname;

    }

    is this correct?

     

    Thanks,

    D.

    #4099
    AiD
    Participant

    It’s for my second site : bathroomdesign.pl

    Regards,

    D.

    #4141
    Sakin
    Keymaster
    #4157
    AiD
    Participant

    I found it before.. I tried to add this in css box with my proper font name but it didnt work…
    add_action( ‘genesis_meta’, ‘wpb_add_google_fonts’, 5);

    function wpb_add_google_fonts() {
    echo ‘<link rel=”stylesheet” type=”text/css” href=”http://fonts.googleapis.com/css?family=Lora|Oswald” media=”screen”>’;
    }

    what I did wrong ? or maybe this was ok, but I add wrong command for font change?

    Regards,
    D.

    #4159
    AiD
    Participant

    Ok. I know that I have add this code to my header.php but where exacly ?
    <link rel=”stylesheet” type=”text/css” href=”http://fonts.googleapis.com/css?family=FONTNAME&#8221; media=”screen”>
    <link rel=”stylesheet” type=”text/css” href=”YOUR THEME STYLESHEET” media=”screen”>

    Your theme stylesheet means simple catch pro ? what i should add here?

    Thanks again.
    D.

    #4179
    Sakin
    Keymaster

    @AiD: Simply add the following function in function.php in your child theme. If you add in in your theme then always keep backup when you do the update to your theme to new version.

    function simplecatch_google_fonts() {
    wp_enqueue_style('google-fonts', 'http://fonts.googleapis.com/css?family=Lora|Oswald');
    }
    add_action('wp_enqueue_scripts', 'simplecatch_google_fonts');

    #4213
    AiD
    Participant

    Thanks,

    D.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How can I add custom google web font ?’ is closed to new replies.