doumiao0498 2015-07-08 02:58
浏览 69

在wordpress主题中使用字体真棒

I have installed theme flat-responsive and it has font awesome css inside. I also see this in functions.php

wp_enqueue_style( 'flat_responsive_font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', array( ), current_time( 'mysql' ), 'all' );

But I couldn't use it, example <i class="fa fa-camera-retro fa-lg"></i> fa-lg showing nothing. I want to do a custom css using this font awe some icon, how can i do?

  • 写回答

1条回答 默认 最新

  • dongtiao0657 2015-07-08 03:09
    关注

    you need to change the css of the i class

    i {   font-family: 'FontAwesome';
      src: url('font/fontawesome-webfont.eot?v=4.3.0');
      src: url('font/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'),
      url('font/fontawesome-webfont.woff2?v=4.3.0') format('woff2'),
      url('font/fontawesome-webfont.woff?v=4.3.0') format('woff'),
      url('font/fontawesome-webfont.ttf?v=4.3.0') format('truetype'),
      url('font/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg');
    }
    

    upload the font family to your theme and also the font awesome css for the class you use e.g. <i class="fa fa-camera-retro fa-lg"></i> fa-lg

    评论

报告相同问题?

悬赏问题

  • ¥15 基于双目测规则物体尺寸
  • ¥15 wegame打不开英雄联盟
  • ¥15 公司的电脑,win10系统自带远程协助,访问家里个人电脑,提示出现内部错误,各种常规的设置都已经尝试,感觉公司对此功能进行了限制(我们是集团公司)
  • ¥15 救!ENVI5.6深度学习初始化模型报错怎么办?
  • ¥30 eclipse开启服务后,网页无法打开
  • ¥30 雷达辐射源信号参考模型
  • ¥15 html+css+js如何实现这样子的效果?
  • ¥15 STM32单片机自主设计
  • ¥15 如何在node.js中或者java中给wav格式的音频编码成sil格式呢
  • ¥15 不小心不正规的开发公司导致不给我们y码,