How to add new google fonts to MGS Panel

To add new google fonts to MGS Panel, first, please make sure the font you want to add exist on google font.

Eg: I want to add this font https://www.google.com/fonts/specimen/Open+Sans to MGS Panel

Open this file:

app\code\local\MGS\Mpanel\Helper\Data.php

Search function name getFonts

Add new line to this function:

array(‘css-name’ => ‘Open+Sans‘, ‘font-name’ => Mage::helper(‘mpanel’)->__(‘Open Sans’)),

Save file, now you can use new google font.

Rate This Article

(12 out of 25 people found this article helpful)

Leave A Comment?