Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1302979
    goalsarecool
    Participant

    Someone who viewed https://goalsarecool.com/test/ indicated that having the “link rel=’stylesheet'” (for Google Fonts) inside the main body isn’t the way to handle things. Is this accurate? If so, how did it happen and how do I fix?

    #1303091
    Darshana
    Moderator

    Hi there,

    Thanks for writing in! You can simply import the font with @import statement within your Child Theme’s style.css file.

    Alternatively you can also follow the example below and add it into your child theme’s functions.php file.

    add_action ('wp_head', 'wpb-google-fonts', 9999 );
    function wpb-google-fonts() {
      echo '<link href="http://fonts.googleapis.com/css?family=Satisfy" rel="stylesheet" type="text/css">'; 
    }

    Hope that helps.

    #1303286
    goalsarecool
    Participant

    Can I put the following in CUSTOMIZER – Custom CSS?

    
    @import url('https://fonts.googleapis.com/css?family=Dancing+Script');
    

    Can I put the following in a text box or text tab of a page?

    
    <span style="font-size: 20pt; font-family: 'Dancing Script';">This is Dancing Script.</span>
    
    #1303350
    Friech
    Moderator

    Hi There,

    #1 I’ve just answer that here: https://community.theme.co/forums/topic/font-6/?replyto=1303031#post-1303347

    #2 Yes, you can. If you’re on Cornerstone you can put that on Text element or RAW content element.

    Cheers!

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