• Priority: High
  • Status: Waiting on customer
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 01.09.20, 17:58
  • Opened by: Giovanni Mastellone

Ticket #18991 - Remove Google Font form RevSlider

I, I’ve decided to remove all Google Font from my website.
I’ve download them, upload them to my server, and changed the css form the website in order to use the local fonts instead google fonts, averythung is working fine, but I have 2 problems:

1) Revolution slider only have 1 write and 2 buttons, both with LibreBaskerville fonts (wich is the font I want to use on all my website), but when i charge the website, the plugin for some reason calls googlefonts for roboto font... and in the general slider setting I see this “roboto” font, wich I’d like to delete. But I can’t understand where it’s setted.

2) On revolution slider I set the Libre Baskerville font, wich is the font I have locally on my server, but for some reason, revolutionslider take it form google, and not from the server.

Can someone can help me please?


Cattura.PNG (135.3 KiB)


Fred 01 Sep 2020, 23:02

Hi, Giovanni.
Revolution slider was not developed by our developers, it has been purchased on themeforest.
I have found out the mention of google fonts link in following files (see below). Try to remove/comment those lines

  115:                         $font_url = $http . '://fonts.googleapis.com/css?family=' . $font['url'];

 1428:                 return '<link href="' . $setBase . 'fonts.googleapis.com/css?family=' . $font . '" rel="stylesheet" type="text/css" media="all" />';

   78:                 <link rel='stylesheet' href="<?php echo '//fonts.googleapis.com/css?family=' . strip_tags($c_font['url']);
  106:                       ?><link rel='stylesheet' href="<?php echo $http . '://fonts.googleapis.com/css?family=' . strip_tags($c_font['url']);

  951:         $font_url = $http . '://fonts.googleapis.com/css?family=';
Giovanni Mastellone 02 Sep 2020, 10:02

Revolution Slider is in bundle with your theme, I've not bought it separately on themeforest.

I'll try commenting these lines.