Home Forums WoodMart support forum add custom font to theme option

add custom font to theme option

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #27364

    alizehi3d
    Participant

    how to add custom font to theme option typography ?

    #27388

    Artem Temos
    Keymaster

    Hello,

    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
    Xtemos

    #27395

    alizehi3d
    Participant

    tanks for good theme and support
    for example Add a font to theme font list

    http://support.dream-theme.com/knowledgebase/add-custom-font/

    tank

    #27407

    Artem Temos
    Keymaster

    Better to follow tutorials we gave you in the previous message.

    #27408

    alizehi3d
    Participant

    Add 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 weight

    #27411

    Artem Temos
    Keymaster

    But this code is not related to our theme and will not work with WoodMart.

    #27412

    alizehi3d
    Participant

    This means there is no such thing as yours؟

    #27418

    Artem Temos
    Keymaster

    Do 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.

    #27441

    alizehi3d
    Participant

    Do 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
    tanks

    #27453

    Artem Temos
    Keymaster

    Could you please provide us a screenshot where do you want to apply your custom font? Have you already uploaded it?

    #27510

    alizehi3d
    Participant

    screenshot

    Attachments:
    You must be logged in to view attached files.
    #27517

    Artem Temos
    Keymaster

    Try to add important statement like this

    font-family: BYekan!important;

    #27520

    alizehi3d
    Participant

    thank you so much
    Hoping to add custom fonts to after ver theme

    #27523

    Artem Temos
    Keymaster

    You are welcome!

Viewing 14 posts - 1 through 14 (of 14 total)