Changing the Google font url to local folder

Free and Premium WordPress Plugins & Themes Forums WordPress Themes Luviana Changing the Google font url to local folder

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1574150
    Manfredo
    Participant

    Hello,

    how can I get the font url (function luviana_fonts_url) from

    $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );

    inside the child-theme functions.php to a local folder, for example “/wp-content/themes/luviana-child/fonts/google/”?

    Thank you in advance for your help.

    Kind Regards
    Manuel

    #1576281
    J. Davis
    Keymaster

    Hi Manfredo,
    You can check the following reply https://motopress.com/forums/topic/dequeue-google-fonts-and-enqueue-system-fonts/#post-
    You will need to override the function luviana_fonts_url instead of ‘booklium_fonts_url’.
    Or you can use a third-party plugin for this.

    #1576669
    Manfredo
    Participant

    Hello, thank you very much. “Option 1” works perfectly.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.