How to Disable Google Fonts?

Posted in: Newspaper
Post count: 48

Hi there,
I want to know how to Disable Google Fonts in the Newspaper theme?

Thanks.
Sanjeev

Post count: 623

To do so you have to edit following two theme files

1 – td-config.php (located in themes includes folder)
2 – style.css

Remove the following code from td-config.php

        /**
         * the default fonts used by the theme. For a list of fonts ids @see td_fonts::$font_names_google_list
         */
        td_global::$default_google_fonts_list = array (
            '438' => array(
                'css_style_id' => 'google_font_open_sans',
                'url' => td_global::$http_or_https . '://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,600,700'
            ),
            '521' => array(
                'css_style_id' => 'google_font_roboto',
                'url' => td_global::$http_or_https . '://fonts.googleapis.com/css?family=Roboto:500,400italic,700,900,500italic,400,300'
            ),
        );

Refer – http://prntscr.com/cgub4l

Now edit style.css file

replace: font-family: 'Open Sans', arial, sans-serif;

with font-family: Verdana,Geneva,sans-serif

and

replace: font-family: 'Roboto', sans-serif;

with font-family: Verdana,Geneva,sans-serif

That’s it. Upload both files and clear cache and browser cookies to check result.

  • This reply was modified 9 years by Amit.
Post count: 623

Method 2

Download your required fonts and convert them to .woff using online tool https://www.fontsquirrel.com/tools/webfont-generator

Next copy the font file on your server, place it inside a folder and make sure you have read permissions enabled for that folder and the files included in it. (Please make sure the folder property is not market as Read Only.)

Next, go to Theme Panel > Theme Fonts > Custom Font Files:

1- Add the link to your custom font in the required area.
2- Specify a name for your custom font.
3- Open the panel where you want to apply the newly set custom font and select it from the drop-down list.
4- Save the settings.

Refer – http://forum.tagdiv.com/font-customization/

Post count: 152

How to apply Method 1 if i use Child Theme?

I have Remove the code from td-config.php. But i can’t edit style.css

  • This reply was modified 9 years by Syams.
Post count: 623

All you need to modify your style.css file in child theme folder.
I would recommend you to update same on core style.css

Post count: 152

This is my style.css, how to modifiy it?

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.