Archived topic
Ask How to Change Header Image and Change logo header font
6 replies · Started by adeiskandr on April 8, 2020
Hi. My Site http://www.belacankepo.com/
had use generatepress theme with tasty site library.
i want to change :
1. Site title font with cocktail font, i dont see the font in customizer, how to add it manually?
2. i want to insert image at header, with background image
how to do that? thank you
Best Regards
Hi there,
1. this document explains how to add your own custom fonts to the site:
https://docs.generatepress.com/article/adding-local-fonts/#uploading-our-font
2. In Appearance > GeneratePress - make sure you have the Backgrounds module enabled.
Then you can add a background image in Customizer > Background > Header
Thank you david, what is the best size for background image for header?
and i can upload font from my cpanel, my font name is cocktail, so what must i do? i am not understand the tutorial at the link that you give to me, i am sorry
Regards
i have use custom font plugin , i have success upload font to media, but the font not appear in customizer
There isn't a set size to go by - as background images respond to size of the browser. But if you create a wide image say 1600px x 200px then this should fill the space on your site nicely when viewed on the average size screen
For the fonts to display in the Customizer you will need to add this PHP snippet to your site:
add_filter( 'generate_typography_default_fonts', function( $fonts ) {
$fonts[] = 'Open Sans';
return $fonts;
} );
Change Open Sans to the name of your font.
This article explains how to add PHP:
https://docs.generatepress.com/article/adding-php/
hi david, thank you for your answer, i have solved my problem, background images was solved
and for font i am using use any font plugin, thanks
Regards
Is the font issue resolved ?