我已经遍历了所有模板.php,.css,.xml文件,但找不到我不需要的Google字体的链接,并且想停止调用。
我确定它必须埋藏在Joomla用来构建网页的许多文件中。
网站是Joomla,最新版本。模板是收藏夹。我想从加载中删除的字体是Google“ Lato”
加载的字体取决于模板设置中选择的内容。
加载字体的代码位于index.php文件中的第78行:
<!-- GOOGLE FONT -->
<!-- navigation -->
<link href='//fonts.googleapis.com/css?family=<?php echo str_replace(' ', '+',$this->params->get('nav_google_font'));?>:<?php echo ($this->params->get('nav_google_font_weight')); ?><?php echo str_replace('normal', '',$this->params->get('nav_google_font_style'));?>' rel='stylesheet' type='text/css' />
<!-- titles -->
<link href='//fonts.googleapis.com/css?family=<?php echo str_replace(' ', '+',$this->params->get('titles_google_font'));?>:<?php echo ($this->params->get('titles_google_font_weight')); ?><?php echo str_replace('normal', '',$this->params->get('titles_google_font_style'));?>' rel='stylesheet' type='text/css' />
<!-- text logo -->
<link href='//fonts.googleapis.com/css?family=<?php echo str_replace(' ', '+',$this->params->get('text_logo_google_font'));?>:<?php echo ($this->params->get('text_logo_google_font_weight')); ?><?php echo str_replace('normal', '',$this->params->get('text_logo_google_font_style'));?>' rel='stylesheet' type='text/css' />
<!-- default -->
<link href="//fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css" />
如果未选择其他选项,则看起来像是在加载Open Sans。