Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #524228

    Hi,

    I’m testing some customization before start designing a website and I have 2 issues:

    1. Social Icons (Wechat, Weibo, QQ & RenRen)
    Already added the code on my child theme and uploaded fontello icons.
    Things seem in place, but Icons don’t display. If you check the sample page http://www.excentric-bcn.com/kellen / you’ll see that the links are actually there (roll over on left side of the top bar displays the name and is linkable) but cannot see the icons.
    Icons are there, I added an Icon box to check on landing page (wechat Icon tester).
    Any suggestions?

    2. In order to solve the google block issues in china, I added a plugin that consists on a simple code.
    Do you think this will work? Would be better to add this code to the functions.php of the child theme?
    Not sure how to test it…

    Here’s the plugin developer site and the code, it may be useful for future requests:
    http://www.soulteary.com/2014/06/08/replace-google-fonts.html

    /**
    * Plugin Name: Replace Google Fonts
    * Plugin URI: http://www.soulteary.com/2014/06/08/replace-google-fonts.html
    * Description: Use Qihoo 360 Open Fonts Service to replace Google’s.
    * Author: soulteary
    * Author URI: http://www.soulteary.com/
    * Version: 1.0
    * License: GPL
    */

    /**
    * Silence is golden
    */
    if (!defined(‘ABSPATH’)) exit;

    class Replace_Google_Fonts
    {

    /**
    * init Hook
    *
    */
    public function __construct()
    {
    add_filter(‘style_loader_tag’, array($this, ‘ohMyFont’), 1000, 1);
    }

    /**
    * Use Qihoo 360 Open Fonts Service to replace Google’s.
    *
    * @param $text
    * @return mixed
    */
    public function ohMyFont($text)
    {
    return str_replace(‘//fonts.googleapis.com/’, ‘//fonts.useso.com/’, $text);
    }
    }

    /**
    * bootstrap
    */
    new Replace_Google_Fonts;

    Thanks!!!!

    #524842

    Solved the icon issue myself, I was applying a wrong name for the imported fonts.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Social icons / 'disable goole fonts'’ is closed to new replies.