[Resolved] Regarding Font Change

Home Forums Support [Resolved] Regarding Font Change

Home Forums Support Regarding Font Change

  • This topic has 5 replies, 3 voices, and was last updated 6 years ago by Tom.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #544631
    Gopalakrishnan

    I am having 3 questions, please give me the answers to resolve it!!

    1. Google font (https://fonts.google.com/specimen/Nunito+Sans) this url’s is not getting in the generatepress theme typography but I want to add this font now. So let me know how to add this!!

    2. Workup(.)com has customized the sidebar and font of this site so please guide to undergo this process

    3. And please tell me how to hide the date of the post on comments??

    I am awaiting for your quick positive reply.

    #544855
    Leo
    Staff
    Customer Support

    Hi there,

    1. This should help: https://docs.generatepress.com/article/customizing-the-google-font-list/#adding-your-google-font-to-the-list

    2. Not sure if I understand? The page you linked isn’t using GP and is not using sidebar.
    Have you tried Customizer > Typography > Widgets > Content font size?

    3. Try this CSS:

    .entry-meta time {
        display: none;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #544875
    Gopalakrishnan

    If I providing m FTP access. Could you change the google font?

    #544894
    Tom
    Lead Developer
    Lead Developer

    Unfortunately we can’t go in and change files, but you can simply add this function:

    add_filter( 'generate_typography_customize_list', 'tu_add_google_fonts' );
    function tu_add_google_fonts( $fonts ) {
    	$fonts[ 'nunito_sans' ] = array( 
    		'name' => 'Nunito Sans',
    		'variants' => array( '300', '400', '600', '700' ),
    		'category' => 'sans-serif'
    	);
    
    	return $fonts;
    }

    You can paste that into one of the methods listed here: https://docs.generatepress.com/article/adding-php/

    Let me know if that does the trick or not ๐Ÿ™‚

    #544997
    Gopalakrishnan

    Thanks for your valuable support

    #545364
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

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