Hi.
2 questions:
1. I’m looking to use different Google fonts to the limited number you allow for selection in the style settings. How can I use other fonts?
2. How can I stop auto capitalisation of headings?
Thanks, Ryder
1) You can use the filter to add new fonts. In functions.php replace
<?php
global $avia_config;
with
<?php
global $avia_config;
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Arvo'] = 'Arvo:400,700';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Arvo'] = 'Arvo:400,700';
return $fonts;
}
and instead of “Arvo” insert your font name. You can also change the font weight parameter. Afterwards select the new font from the dropdown (admin screen).
2) Insert following code into the quick css field
.template-page .entry-content h1, .template-page .entry-content h2, .widgettitle, .iconbox .iconbox_content .iconbox_content_title, .avia-icon-list .iconlist_title{
text-transform: none;
}
Hi, I’ve also been trying to add a new google font, but to no avail.
I was trying to add this font: http://www.google.com/fonts#UsePlace:use/Collection:Patrick+Hand
And I added the code above to the function.
The font appears in the dropdown option, but appears to only show up as helvetica.
Thoughts?
Hi,
It works on my end. Please use this:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Patrick Hand'] = 'Patrick Hand';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Patrick Hand'] = 'Patrick Hand';
return $fonts;
}
Regards,
Ismael