-
AuthorPosts
-
March 17, 2018 at 12:00 pm #928439
Hi, I wanted to use the Google Font, Kaushan Script, for all headings. I am using the Enfold Child theme and tried the following Quick CSS:
h1.av-special-heading-tag , h2.av-special-heading-tag , h3.av-special-heading-tag {
font-family:’Kaushan Script’ !important;
}However this didn’t work. Could you please help.
March 17, 2018 at 10:34 pm #928577Hey Angeladlh,
Please try Register Additional Google Fonts for Theme Options
This would display additional google fonts as options in the General Styling font dropdowns, and you can select the font in Enfold Theme Options > Advanced Styling, were you can assign it to headings.Best regards,
MikeMarch 18, 2018 at 4:26 am #928600This comes to your functions.php of your child-theme:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Kaushan Script'] = 'Kaushan Script'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Kaushan Script'] = 'Kaushan Script'; return $fonts; }
The plus sign in the font should not be here – than it will work
March 18, 2018 at 12:44 pm #928683Hi Mike and ‘Guenni007’ thankyou for your prompt responses. If I go to my WP Dashboard and click on Appearance, I do not see the Editor, which would enable me to edit my functions.php file. I am new to WP so I am unsure why this is the case. Please help.
March 18, 2018 at 2:25 pm #928700Dashboard – Appearance – Editor ( appearance is a drop down – if you only press Editor – you will open the first point – themes)
on the right side there will be a list of files / folders
there is a functions.php ( but be sure you are using a child-theme – even if you will manage to edit the file on parent-theme – changings will be lost on next update)
on a fresh child theme install there will be only:
<?php /* * Add your own functions here. You can also copy some of the theme functions into this file. * WordPress will use those functions instead of the original functions then. */
and – yes there is no closing tag at the end of that file
March 18, 2018 at 2:54 pm #928708Hi,
Were you able to find the editor with Guenni007 explanation? If not I would ask if you are using a security plugin, some disable this feature. If you include a admin login in the private content area, we can take a closer look.Best regards,
MikeMarch 18, 2018 at 3:03 pm #928713yes some people have plugins or in wp-config f.e. that line :
define( 'DISALLOW_FILE_EDIT', true );
which surpesses the editorMarch 18, 2018 at 11:13 pm #928818Hi, I am unable to display the Editor. Please see details below. Thankyou.
March 19, 2018 at 1:08 pm #929035March 20, 2018 at 1:06 am #929444Hi Mike, thankyou so much for your help! regards, Angela
March 20, 2018 at 1:37 am #929449Hi,
Glad to help, before we close this I wanted to ensure you were able to get your font working?Best regards,
MikeMarch 21, 2018 at 12:24 am #930200This reply has been marked as private.March 21, 2018 at 2:04 am #930207Hi,
Glad we were able to help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
and the video tutorials here
And if there are features that you wish Enfold had, you can request them and vote the requested ones here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)Best regards,
Mike -
AuthorPosts
- The topic ‘Add Google Font to Enfold Theme’ is closed to new replies.