Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #412748

    hi

    i want to disable the connection to googleleapis because it slow down the web a lot while working on it.
    so would u please tell me what files include the below:
    ajax.googleapis.com
    fonts.googleapis.com

    thanks a lot

    #413395

    Hi,

    Go to Enfold > General Styling > Fonts and select a non-google font for the headings and body.

    Regards,
    Josue

    #413400

    Hi, Josue

    i like fonts and ajax that google offers.

    i have other ways to replace, not just simply disable it.

    so to tell me what files include them would be helping.

    thanks
    chris

    #413635

    Hey!

    Please go to Enfold/framework/php folder and open class-style-generator.php file and remove ‘link_google_font’ and ‘print_extra_output’ functions

    Cheers!
    Yigit

    #582894

    Hi,
    Is it a way to remove this part of file (I mean ‘link_google_font’ from class-style-generator.ph) and this deletion persist in later updates?

    #582930

    Hey!

    Try adding this at the very end of your theme / child theme functions.php file:

    add_action( 'init', 'enfold_customization_switch_fonts' );
    function enfold_customization_switch_fonts() {
        global $avia;
        $avia->style->print_extra_output = false;
    }
    

    Cheers!
    Josue

    #633759

    It’s cool! :)

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘disable fonts and ajax from googleapis.com’ is closed to new replies.