Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33565
    Michael
    Guest

    Hello,

    I am using Grid One on my site, and would like to edit it to load FontAwesome from a CDN. Is that possible? If so, which file in the theme should I edit?

    Thanks!

    #33624
    Jesse Owens
    Keymaster

    Hi Michael-

    Thanks for reaching out! This is possible, in a few different ways.

    Probably the best way to accomplish this is to use a plugin like W3 Total Cache to connect to an asset CDN. That way, not only will FontAwesome be loaded from a CDN, but all of your site’s static assets like JavaScript, CSS, and fonts will be served from the network.

    That also has the added bonus of not requiring modifications to any theme files. Keep in mind that if you edit your theme files without creating a child theme, you’ll lose any of your modifications any time the theme is updated.

    All of that being said, the files in which the FontAwesome Woff2 file is referenced are these:

    boldgrid-gridone/inc/boldgrid-theme-framework/assets/css/font-awesome/font-awesome.css
    boldgrid-gridone/inc/boldgrid-theme-framework/assets/css/font-awesome/font-awesome.min.css
    boldgrid-gridone/inc/boldgrid-theme-framework/assets/scss/font-awesome/_path.scss
    boldgrid-gridone/inc/boldgrid-theme-framework/includes/kirki/controls/fontawesome/font-awesome.css
    boldgrid-gridone/inc/boldgrid-theme-framework/includes/kirki/controls/fontawesome/font-awesome.min.css
    

    Search for fontawesome-webfont.woff2 to locate the references.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Load FontAwesome from CDN’ is closed to new replies.