Tagged: 

Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #666782

    **Reposting this thread**

    Looks like another user took over.

    • This topic was modified 8 years, 3 months ago by ccyran.
    #667152

    is there any way to add new google fonts via the quickcss function withouth modifing any php files?

    #667153

    I added this code to enfold-functions.php but it doesnt work

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Offside’] = ‘Offside:400,700’;
    return $fonts;
    }

    #667259

    Hi!

    Please refer to this post – http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
    If you are not using a child theme, please add the code right below following line

    if(isset($avia_config['use_child_theme_functions_only'])) return;

    Cheers!
    Yigit

    #668372

    Thanks Yigit,

    I tried this but no luck. Still have 9 fonts only.

    if(isset($avia_config[‘use_child_theme_functions_only’])) return;

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘PT Sans Narrow’] = ‘PT Sans Narrow:400,700’;
    $fonts[‘PT Sans’] = ‘PT Sans:400,700,400italic,700italic’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {

    $fonts[‘PT Sans’] = ‘PT Sans:400,700,400italic,700italic’;
    $fonts[‘PT Sans Narrow’] = ‘PT Sans Narrow:400,700’;
    return $fonts;
    }

    Could you help me with my second question I posted?

    How do I make the header tabs Capitalized? and can the tracking be controlled?

    Thanks!

    • This reply was modified 8 years, 3 months ago by ccyran.
    #668476

    Hi,

    Please create a temporary admin login and post it here privately and elaborate on the other changes you would like to make.

    Best regards,
    Yigit

    #668686

    Hey Yigit,

    Understood, please see my notes in “Private Content”.

    Thanks!
    Chris

    #669100

    thanks, I have been able to add a custom font

    • This reply was modified 8 years, 3 months ago by Viramedia.
    #670310

    Hi,

    I added the code near the top, please review your website now.

    Best regards,
    Yigit

    #733401

    I can’t seem to get this to work.

    I added the following code in the functions.php however Sorts Mill Goudy is not showing up in the drop down under Theme Settings > General Styling > Fonts

    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Sorts Mill Goudy'] = 'Sorts Mill Goudy:400,400italic';
    return $fonts;
    }

    Thanks
    Jon

    #733402

    log in

    #733404

    Hey!

    I did the same on your site as well. Please review your website

    Regards,
    Yigit

    #733407

    Awesome thanks,

    How do I carry over a change in Body/Content font to things like contact forms?
    It look like it stayed with the default theme font in those places.

    Thanks
    Jon

    #734736

    Hi,

    try this code inside Quick CSS field:

    textarea {
    font-family: 'fantasy';
    }

    and adjust as needed.

    Best regards,
    Andy

    #734893

    Andy,

    Thanks, but no luck.
    I used the name for the Google Font I am using in the rest of the content area, but the selector drop down, the submit button, and any text typed into the fields are still showing the default theme font.

    textarea {
    font-family: 'Sorts Mill Goudy';
    }

    http://6d6.7fe.myftpupload.com/contact/

    Jon

    #735489

    Hi,

    try to use an !important:

    textarea {
    font-family: 'Sorts Mill Goudy' !important;
    }

    Best regards,
    Andy

    #736468

    Andy,

    Thanks.
    I had also tried that, but it doesn’t seem to be working.

    #736471

    Hey!


    @millertimesites
    Can you please start a new thread, elaborate on the changes you would like to make and attach temporary admin logins in private content field?

    Best regards,
    Yigit

    #741988

    Sounds great, If I think of anything else I will open a new thread.

    Just to help other Enfold users out. To add the Google Font of Sort Mill Goudy, this code

    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Sorts Mill Goudy'] = 'Sorts Mill Goudy:400,400italic';
    return $fonts;
    }

    was placed right below this line in inside functions.php
    if(isset($avia_config['use_child_theme_functions_only'])) return;

    But how should it be handled in a child theme?
    Does all of the code from Enfold functions.php need to be pasted in the child theme functions.php or just the portion we are adding to it?
    I ask since the Google font code seems to not work if added to the end of the file and needs to go in a specific place.

    Thanks a ton!
    Am

    #743398
    #748108

    Andy,

    Awesome, that worked great when using a child theme!

    Glad i know both options now.

    #749308

    Hi,

    Glad we could help!
    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Andy

Viewing 22 posts - 1 through 22 (of 22 total)
  • The topic ‘Adding Google fonts in Enfold’ is closed to new replies.