Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1141769
    eddierosenthal
    Participant

    Hi – adding a new font that was not listed in the Typography customizer and
    here is the code i added to function file
    // Additional Functions
    // =============================================================================

    add_action (‘wp_head’, ‘baskerville_google_font’, 9999 );

    function baskerville_google_font() {
    echo ‘<link href=”https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i&#8221; rel=”stylesheet” type=”text/css”>’;
    }

    where i get unexpected t string error. see pic.
    ideally i would add the font to the customizer, with some alternative code, if you could provide it.
    thanks,
    ed

    #1141825
    Thai
    Moderator

    Hi There,

    Please replace your code with this:

    add_action('wp_head', 'baskerville_google_font', 9999 );
    
    function baskerville_google_font() {
    	echo '<link href="https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i" rel="stylesheet" type="text/css">';
    }

    If it doesn’t work, please provide us with login credentials so we can take a closer look.

    Thanks.

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