Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #153726
    DavidForer
    Participant

    Is there a way to remove Google Fonts? I can’t seem to find it anywhere in the theme.

    Also, can we remove the code for the favicon? It is still making a call even when I have left it blank.

    I would like to remove these two things from the theme altogether. To be honest both of them slow it down and some of us also don’t like using everything Google.

    Thanks

    david

    #153764
    Skandha
    Participant

    @davidforer: To remove Google Fonts and Favicon you will need to create a child theme and do a bit of customization. Let me know if you are familiar with child theme customization otherwise I suggest you to hire a customizer to get it done. I will provide you the necessary codes if you are familiar with child theme customization.

    Let me know if this helps you out!
    Kind Regards,
    Skandha

    #153771
    DavidForer
    Participant

    I have done a child theme before so I will be able to do it. Obviously it will take longer than someone like you but that would be great. Thanks

    #153781
    Skandha
    Participant

    @davidforer: Firstly you will need to create a child theme. For that you can use our Generate Child Theme Plugin. Using the plugin create a child theme for Adonis Free Theme.

    Now,
    Go to => Child Theme Folder => functions.php => add the following Code.

    // Removing Google Fonts from theme
    function dequeue_google_fonts_style() {
          wp_dequeue_style( 'adonis-fonts' );
    }
    add_action( 'wp_print_styles', 'dequeue_google_fonts_style' );
    
    // Removing Site Icon feature from theme
    function remove_styles_sections($wp_customize) {
        $wp_customize->remove_control('site_icon');
    }
    add_action( 'customize_register', 'remove_styles_sections', 20, 1 );

    Let me know if this works out!
    Kind Regards,
    Skandha

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Google Fonts’ is closed to new replies.