Tagged: ,

Viewing 26 posts - 1 through 26 (of 26 total)
  • Author
    Posts
  • #706835

    Hello Kriesi and Enfold family.

    Disclaimer: I’m not good with coding.

    I hope you can help me with a problem regarding fonts. I have searched the web and found to fonts I would like to use on my website.

    Crimson Text Regular for all headings and Source Sans Pro Regular for all normal text. Both Google fonts.

    I have looked at the documentation file here:

    and another support post here:
    https://kriesi.at/support/topic/add-new-font/#post-234710

    But for some reason I can’t get my head around it..
    I would love to be able to select them from the drop down menu in Enfold –> Generel styling –> Fonts or Enfold –> Advanced styling.

    I have tried to insert some code in the functions.php file and custom CSS. But the I can’t solve the problem.

    Have you by any chance made a video of this, or a really easy guide to follow? :)

    I hope you can help me.
    Kind regards,
    Gustav

    #707020

    Hey Casualmonkey,

    Please send us a temporary admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #707981

    Hello Rikard,

    Sounds great! I really hope you can help me solve my problem.

    Kind regards,
    Gustav

    #707998

    Hi Kriesi,

    Can I please ask for the same help with the Google font – Titillium Web

    I would like the font to visible in the Enfold theme dropdown list.

    Br Claus

    #708092

    Hi Gustav,

    I see that you are not using a child theme, that means that all changes made to your theme will be overwritten on updates. Could you download and set up a child theme first maybe? http://kriesi.at/documentation/enfold/downloads/.

    After that you can go to Udseende->Editor and paste the following code into the end of the file called functions.php:

    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;
    }

    Make sure it’s working after doing this, after that you can simply replace PT Sans with the font you want to import.

    Best regards,
    Rikard

    #708108

    Hi Rikard,

    I hope it is OK that I mail you an administrator login to my site also.

    I do have a Child Theme installet. Just need the Google Font – Titillium Web installet.

    Br Claus

    #708683

    Hello Rikard,

    Great! Amazing it works :)

    Thank you very much. The guide for the child theme was really useful.
    The code you send is also working as well. Great!

    If I would like to instal the Crimson text font as well, should I just replace “PT Sans Narrow” with “Crimson Text”?

    Another question. Before I installed the child theme I had the API key set up for automatically updates on the theme. How do I do that now? Should I just insert my key in the child theme?

    Thank you so much for the help,
    Kind regards,
    Gustav

    #709010

    Hi,

    Yes, you can use it on your child theme since it’s just the same site. And yes, you can replace PT Sans Narrow with Crimson text :)

    Best regards,
    Nikko

    #709769

    Thank you very much for your help. It’s priceless :)

    Kind regards,
    Gustav

    #710091

    Hi Gustav,

    Glad we could help :-)

    Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

    #964184

    Hello,

    I tested all commands that I found in this forum for CSS and function.php but I coud not change headlines to google font “cinzel” I am using the Child Theme. I tested in the function.php of the enfold and enfold child-theme

    Can you please help me? Thanks a lot

    #965307

    Hi Semito,

    Yes, if you use Enfold 4.4, you use this code:

    add_filter( 'avf_available_google_fonts',  'avia_add_google_font');
    function avia_add_google_font( $fonts ) {
    	$fonts['Cinzel'] = 'Cinzel';
    	return $fonts;
    }

    You should find Cinzel last in the list.
    Hope this helps :)

    Best regards,
    Nikko

    #966347

    Hello Nikko…I tryed in CSS and also child theme function.php but it does not work!

    Do you have another Idear?

    Best Regards

    #966452

    Hi Semito,

    Can you give us admin access? so we can check it further.
    Have tested it on my end and it does work.
    Maybe some caching issue? just post the details in private content.

    Best regards,
    Nikko

    #968942

    Hello Nikko did you get the private Admin Access?

    Thank you best regards

    #969689

    Hi Semito,

    No, I haven’t received it, Private Content is located at the bottom of the textarea where you reply, you should see this text above it:
    Private Content (link to your website, login credentials, FTP credentials, etc – only visible for moderators)
    Content in there is only visible to you as the thread creator and moderators.

    Best regards,
    Nikko

    #969700
    This reply has been marked as private.
    #970927

    Hi Semito,

    I apologize for the late response.
    Ftp is working fine but the wp-admin access isn’t working please check.

    Best regards,
    Nikko

    #971061

    oh….sorry this is the right one!!!

    Thank you very much!!!

    #971983

    Hi,

    Thanks for the update. The Appearance > Editor panel is not accessible though. Please enable it or provide the FTP details. You should add that filter in the child theme’s functions.php file. Don’t forget to refresh the page afterwards.

    Best regards,
    Ismael

    #980505

    Hello Ismael,
    thank you and sorry for the late reply. I sended you the ftp details. best regards

    #981097

    Hi Semito,

    I have tried to access the ftp with the details you gave however it doesn’t work.
    Also I checked your site, which text did you use the Cinzel font? I do see Cormorant font used.

    Best regards,
    Nikko

    #981515

    Hello Nikko,
    I am using another Font because Cinzel is not in the Enfold Font list. But for the headlines I need to use Cinzel for my client!!!
    I am using Wise ftp with these details?
    Thank u very much

    #983147

    Hi,

    You can see how to add additional fonts

    Best regards,
    Basilis

    #1071455

    It would be nice to know if filters are renamed or replaced by other ones – maybe in the changelog of a new version!

    the new : avf_available_google_fonts – i just recognized it on some pages where the content font does not work like before

    #1072091
Viewing 26 posts - 1 through 26 (of 26 total)
  • The topic ‘How to change theme font family’ is closed to new replies.