Hi I want to use a Google font weight 700 but it wont work. I have put the following in the functions.php:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Montserrat'] = 'Montserrat:700';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Montserrat'] = 'Montserrat:700';
return $fonts;
}
And this to the css:
font-weight: 700 !important;
Please can you take a look and see if if you can see what I have done wrong.
Thanks
Sorry forget that I seem to have fixed it.
and by the way there is a new filter to use on content font:
avf_available_google_fonts
add_filter( 'avf_available_google_fonts', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Montserrat'] = 'Montserrat:700';
return $fonts;
}
Again btw:
there is a little trick to have an outline with text-shadow:
.robshadow h1, .robshadow h2 {
text-shadow: -1px -1px 0 #000 , 1px -1px 0 #000 , -1px 1px 0 #000 , 1px 1px 0 #000 !important;
}
PS: you can combine text-shadow and filter f.e.:
.robshadow h1 {
text-shadow: -1px -1px 0 #000 , 1px -1px 0 #000 , -1px 1px 0 #000 , 1px 1px 0 #000 !important;
-webkit-filter: drop-shadow(1px 1px 2px #999);
filter: drop-shadow(1px 1px 2px #999);
}
and maybe it looks nicer to have your html background on fixed position ;)
Thanks 007. Useful tips.
Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
Don’t forget to bookmark Enfold Documentation for future reference.
Thank you for using Enfold :)
Best regards,
Basilis