Tagged: special heading
-
AuthorPosts
-
October 23, 2017 at 11:45 pm #867893
Hello,
I am using special heading set to “Heading Style Classic (centered, italic)” but, rather than using the actual italic weight for the font, it is just slanting the letters in a “faux italics.”
The first image on this page the special heading: http://capstone-vision.flywheelsites.com/
This is what the font is supposed to look like in italics: https://fonts.google.com/specimen/Droid+Serif
Is there a way to actually set this heading to actually be Droid Serif Italic? Thank you!
October 25, 2017 at 4:06 am #868507Hey Kirstie,
Thank you for using Enfold.
Please try to add the italic version as a separate font.
// http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
Best regards,
IsmaelOctober 25, 2017 at 4:06 am #868508Hey Kirstie,
Thank you for using Enfold.
Please try to add the italic version as a separate font.
// http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
Best regards,
IsmaelOctober 25, 2017 at 9:35 pm #868961Thanks for the response. I decided to use Droid Serif because it was already installed with Enfold and I wanted to avoid any custom code for this website. Is there a reason why the italic weight is not already installed? I am having the same problem with bold in Droid Sans. Are all of the fonts that come pre-loaded with Enfold only available in regular weight?
October 26, 2017 at 8:12 am #869121Hi,
It’s not working because the specific font style or weight is not included in the theme’s Droid Serif font
Best regards,
IsmaelOctober 26, 2017 at 3:14 pm #869226Are there any fonts that come installed with Enfold that have the actual italic and bold weights included?
October 26, 2017 at 7:53 pm #869304I did decide to add my own fonts to the functions.php. I am not using a child theme, so when the theme updates, will I have to add the code back into the functions.php?
October 27, 2017 at 1:50 pm #869545Hi MattJensenMarketing,
Yes, you will have to put the code there again after every update. I strongly recommend using a child theme.
If you need further assistance please let us know.
Best regards,
VictoriaNovember 2, 2017 at 6:50 pm #871801I have set up a child theme, but every time I try to install it, the site shuts down with an “HTTP 500” error.
The problem is with the functions.php file, because when I upload a blank functions.php, it works. But, in order to get the fonts I want, I need to add them to my functions.php. This is what my functions.php file looks like when I get the error:
<?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. */ add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Merriweather'] = 'Merriweather:400,400i,700,700i'; $fonts['Merriweather Sans'] = 'Merriweather Sans:300,300i,700,700i'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Merriweather'] = 'Merriweather:400,400i,700,700i'; $fonts['Merriweather Sans'] = 'Merriweather Sans:300,300i,700,700i'; return $fonts; }
Do you see anything here that would cause the site to crash? Thank you!
- This reply was modified 7 years, 1 month ago by MJM.
November 3, 2017 at 5:43 am #871991Hi,
I added the code/filter above but I can’t reproduce the error. Is there any existing filter in the theme files?
Best regards,
IsmaelNovember 3, 2017 at 9:18 pm #872294I was able to figure out what the problem was. I hadn’t deleted the filter from the parent Enfold file, so they must have been conflicting. Thanks for your help with this! This topic can now be closed.
November 4, 2017 at 1:45 pm #872501Hi,
Great, glad you found the problem and thanks for letting us know. Please open a new thread if you should have any further questions or problems, I’ll go ahead and close this for now.
Best regards,
RikardNovember 21, 2017 at 4:17 pm #879807This topic can be closed, thanks!
November 22, 2017 at 5:53 am #880063 -
AuthorPosts
- The topic ‘Special Heading Faux Italics’ is closed to new replies.