Archived topic
Regarding Font Change
5 replies · Started by Gopalakrishnan on April 8, 2018
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.
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/
If I providing m FTP access. Could you change the google font?
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 :)
Thanks for your valuable support
You're welcome :)