Okay
  Print

How to add custom icon font

In order to add new icon font, you need to customize the theme. Please do the following steps:

1. First of all you need to import your font file. 

2. Please take a look at the top of style.crush.css file and you will find @font-face declaration. You need to import your own font files in the same manner as FontAwesome and the rest and declare the font-family as 'myFont' or something similar.

3. Then you need to search for all 'data-ico-fa' in the style.crush.css file and create respective statements for your font. For example when you locate

*[data-ico-fa]:before {
    font-family: FontAwesome;
    content: attr(data-ico-fa);
    }

you need to create 

 *[data-ico-mf]:before {
    font-family: myFont;
    content: attr(data-ico-mf);
    }

etc.

4. Then, you need to create new file in celebration plugin folder called bt_mf_icons.php by copying the file bt_fa_icons.php and changing it by mapping you glyph codes:

function bt_mf_icons(){
 $arr = array(
     '  ' => 'no_icon', 
     'myname1' => 'mf_' . 'xxxx',
     'myname2' => 'mf_' . 'xxxx',,
etc...

5. Finally, you need to edit celebration.php in your plugin's folder, search for bt_fa_icons() and add respective statements for bt_mf_icons() as well. For example to change all occurrences of 

$icon_arr = array_merge( bt_fa_icons(), bt_s7_icons(), bt_custom_icons() );

to

$icon_arr = array_merge( bt_fa_icons(), bt_mf_icons(), bt_s7_icons(), bt_custom_icons() );