Home › Forums › WoodMart support forum › add custom font to theme option
add custom font to theme option
- This topic has 13 replies, 2 voices, and was last updated 7 years, 2 months ago by Artem Temos.
-
AuthorPosts
-
December 6, 2017 at 7:50 am #27364
alizehi3dParticipanthow to add custom font to theme option typography ?
December 6, 2017 at 8:23 am #27388
Artem TemosKeymasterHello,
We are glad to know that you considered using WoodMart for your web-site. I hope you will be happy with it.
Unfortunately, there is no option in our Theme Settings to upload your custom fonts. Here are a few articles that should help you to add custom fonts to your website
http://www.wpbeginner.com/wp-themes/how-to-add-custom-fonts-in-wordpress/
https://premium.wpmudev.org/blog/custom-fonts-css/Kind Regards
XtemosDecember 6, 2017 at 8:32 am #27395
alizehi3dParticipanttanks for good theme and support
for example Add a font to theme font listhttp://support.dream-theme.com/knowledgebase/add-custom-font/
tank
December 6, 2017 at 9:18 am #27407
Artem TemosKeymasterBetter to follow tutorials we gave you in the previous message.
December 6, 2017 at 9:23 am #27408
alizehi3dParticipantAdd a font to theme font list
Please add the following code into the end of your functions.php file:
function add_custom_font( $fonts ) {
$fonts[‘Gruppo’] = ‘Gruppo’;
return $fonts;
}add_filter( ‘presscore_options_get_safe_fonts’, ‘add_custom_font’ ,30 , 1 );
Now This font is available in Theme Options > Typography > font list.
Note: If you want to specify font with weight you can do this using following code notation in add_custom_font() function.
$fonts[‘Gruppo:500’] = ‘Gruppo(500)’; //for 500 weight
$fonts[‘Gruppo:700’] = ‘Gruppo(700)’; //for 700 weightDecember 6, 2017 at 9:24 am #27411
Artem TemosKeymasterBut this code is not related to our theme and will not work with WoodMart.
December 6, 2017 at 9:27 am #27412
alizehi3dParticipantThis means there is no such thing as yours؟
December 6, 2017 at 9:50 am #27418
Artem TemosKeymasterDo you mean adding a font to the Theme Settings? You don’t need to do this, just upload your font and apply the CSS from the article o use custom font.
December 6, 2017 at 11:17 am #27441
alizehi3dParticipantDo not apply to some tag(h3 …) CATEGORIES
Do you mean adding a font to the Theme Settings? yes. If you can php code add font
tanksDecember 6, 2017 at 12:12 pm #27453
Artem TemosKeymasterCould you please provide us a screenshot where do you want to apply your custom font? Have you already uploaded it?
December 6, 2017 at 2:22 pm #27510December 6, 2017 at 2:43 pm #27517
Artem TemosKeymasterTry to add important statement like this
font-family: BYekan!important;
December 6, 2017 at 3:05 pm #27520
alizehi3dParticipantthank you so much
Hoping to add custom fonts to after ver themeDecember 6, 2017 at 3:25 pm #27523
Artem TemosKeymasterYou are welcome!
-
AuthorPosts
- You must be logged in to create new topics. Login / Register