a2213108
V2EX  ›  WordPress

求助怎样修改 WordPress 主题里的 CSS

  •  
  •   a2213108 · Feb 2, 2017 via Android · 3120 views
    This topic created in 3589 days ago, the information mentioned may be changed or developed.
    新手完全不懂,比如
    // Add Font Awesome stylesheet
    wp_enqueue_style( 'activello-icons', get_template_directory_uri().'/inc/css/font-awesome.min.css' );
    这一段我怎么换用 cdn.bootcss.com 的内容?
    2 replies  •  2017-02-03 11:21:35 +08:00
    Pete
    Pete
    Feb 2, 2017 via Android
    1
    就第三行这里改掉 /开头是指代你自己服务器上的 省略
    改这个注意别前后少个引号的 这种问题 QQ 群什么的问问别人就行了 在 v2 发大家很懵…
    Clarke
    Clarke
    Feb 3, 2017 via Android❤️1
    2
    像这样子改就行了。

    wp_enqueue_style( 'activello-icons', '//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css' );
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2857 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 05:11 · PVG 13:11 · LAX 21:11 · JFK 00:11
    ♥ Do have faith in what you're doing.