Important notice: we will respond to all open ticket requests up until November the 1st. After this date, we will be unable to process the ticket requests here on Ticksy.

Okay
  Public Ticket #1079579
google fonts
Closed

Comments

  •  2
    Peter Ha started the conversation

    Hello Elated-Themes Team,

    I would like to use a Google Font that is not listed in the theme. The font name is Taviraj. Would I need to wait for an update from you in order to see it available? Or is there a solution that would allow me to pull in that font by editing the theme files?

    Thank you,

    Peter


  •  1,845
    Elated replied

    Hello,

    Go to your theme folder/functions.php and paste this code:

    if (!function_exists('additional_font_styles')) {
        function additional_font_styles () {
        wp_enqueue_style('your_font_name', 'the_url');
        }
        add_action('wp_enqueue_scripts', 'additional_font_styles');
    }


    Adjust the your_font_name to your preference and the url to the right URL path to the fonts' files. Next, with CSS code apply this font to any part of the website you might want with font-family property.

    For example paste this code below into your admin Elated Options -> General -> Custom css field

    body, h1{font-family: 'YourFont', sens-serif !important;}

    This handles the API call to your webfont. We suggest that you do this in your child theme and its functions.php file in order to preserve this alterations upon theme update.

    Thanks


    The Elated Support Center has been moved to our centralized support platform. 

    Please note that any existing tickets prior to this change will be answered right here on Ticksy, and in due time. 

    If you wish to submit a new support request, for all new inquiries please head on to our Help Center.

    Elated Themes is part of Qode Interactive – the home of 300+ premium WordPress themes.

    Don’t forget to sign up for our newsletter and be the first to find out all the latest news.