-
AuthorPosts
-
April 8, 2018 at 10:40 am #938754
Hi.
I wish to change the font family throughout the entire Enfold theme, and some of the places i have had succes with it.
But especially in menues and footer I have big troubles to make the changes.
I have this in my quick css :#fwcs .container { width: 100% !important; max-width: 100%; padding: 0; margin: 0; }
#top .av-main-nav ul a {
padding: 2px 15px;
}add_filter(‘avf_template_builder_content’, ‘avia_add_social_toolbar_template_builder’, 10, 1);
function avia_add_social_toolbar_template_builder($content = “”)
{
$content .= avia_social_share_links(array(), false, ”, false);
$content .= ”;
return $content;
}
strong.logo a img {
padding-top: 18px !important;
}.header-scrolled strong.logo a img {
padding-top: 5px !important;
}.main_color table caption, .main_color tr:nth-child(even), .main_color .pricing-table>li:nth-child(even) { color: inherit; }
tr:first-child th, tr:first-child td,tr th:first-child, tr td:first-child,td { border: none !important; }add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Titillium+Web’] = ‘Titillium+Web’;
return $fonts;
}And this in my functions.php :
<?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[‘Titillium+Web’] = ‘Titillium+Web’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Titillium+Web’] = ‘Titillium+Web’;
return $fonts;
}As I have understood, this should be enougt to change the font family throughout the theme ?
April 9, 2018 at 5:29 am #938937Hey Edsbjerg,
It looks like you have PHP in your CSS, that is not a good idea:
add_filter(‘avf_template_builder_content’, ‘avia_add_social_toolbar_template_builder’, 10, 1); function avia_add_social_toolbar_template_builder($content = “”) { $content .= avia_social_share_links(array(), false, ”, false); $content .= ”; return $content; }
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’); function avia_add_heading_font($fonts) { $fonts[‘Titillium+Web’] = ‘Titillium+Web’; return $fonts; }
Please remove it if it’s in your Quick CSS. If you need guidance on how to add a font to the theme then please refer to this: http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
After you have imported the font you can set it in the theme options.
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.