-
AuthorPosts
-
July 11, 2017 at 8:11 am #819135
Hi guys,
Is there quick CSS I can use to change the fonts on these two?
I want to use “Rubik Light”.Thanks!
ChrisJuly 11, 2017 at 10:02 am #819190Hey ccyran,
Did you add the font to the theme? http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
Best regards,
RikardJuly 11, 2017 at 3:38 pm #819436Hey Rikard,
I tried a few times but I can’t seem to get it right. In this code below, I don’t know what to replace
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;
}July 11, 2017 at 3:42 pm #819451Hi,
Please use the code as following
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Rubik'] = 'Rubik:300,400,500,700'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Rubik'] = 'Rubik:300,400,500,700'; return $fonts; }Best regards,
YigitJuly 11, 2017 at 3:58 pm #819469Ah I see, I was adding the font in the wrong spot.
Last question! How can I specifically use the light weight of Rubik? In the jpg caption overlay and masonry gallery?
Thanks!
July 11, 2017 at 4:03 pm #819471Hi,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:
.av-image-caption-overlay-center * { font-weight: 300!important; }Best regards,
YigitJuly 11, 2017 at 4:46 pm #819508This was perfect,
Thank you!
July 11, 2017 at 5:01 pm #819521 -
AuthorPosts
- The topic ‘Masonry Gallery & Image Caption Font’ is closed to new replies.
