• 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?

Attachments:

Cattura.PNG (135.3 KiB)

Comments

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

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

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

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

/modules/revsliderprestashop/views/slider_speed.php:
  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.