Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1043052
    cvdw
    Participant

    Hi,

    I try to get an other Google font for mij H3 text.

    Reading true the topics I found this:

    add_action (‘wp_head’, ‘custom_google_font’, 9999 );
    function custom_google_font() {
    echo ‘<link href=”http://fonts.googleapis.com/css?family=Special+Elite&#8221; rel=”stylesheet” type=”text/css”>’;
    }

    I put this code in the functions.php of my child theme and I put this:

    h3, .h3, h3 a, {
    font-family: “Special Elite”, cursive;
    font-style: normal;
    font-weight: 700;
    color: #767b4e;
    }

    In the Customizer > Custom > Edit global css

    But my H3’s are not displayed in the Special Elite font.

    What I’m doing wrong…?

    #1043264
    John Ezra
    Member

    Hi there,

    Thanks for writing in! Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1043442
    cvdw
    Participant
    This reply has been marked as private.
    #1043688
    Joao
    Moderator

    Hi there,

    Your code is right.

    What part of your website you would like to change exactly?

    Have in mind if you have an H2 that looks like H3 you need to use h2.h3 as a selector

    for example I have used it:

    
    h2.h3  {
        font-family: "Special Elite", cursive;
        font-style: normal;
        font-weight: 700;
        color: #767b4e;
    }
    
    

    And it changes the typeface and color the text you have inside a greenbox on your home page.

    If you need further help please be specific about what you would like to change so we can help you, but I believe using the example above you will be able to manage.

    Hope that helps,

    Joao

    #1045000
    cvdw
    Participant
    This reply has been marked as private.
    #1045111
    Joao
    Moderator

    You are welcome.

    Joao

  • <script> jQuery(function($){ $("#no-reply-1043052 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>