dsuw85815 2017-11-09 16:40
浏览 51

无法在wordpress中排列更新的style.css更改

I can't load newer style.css changes I've made into my wordpress theme, its pulling an older version of that file / ignoring any new changes I've made/saved.

In functions.php under the root of my theme folder "humescores" I have this to enqueue my stylesheets

function humescores_scripts() {
        //Enqueue Google fonts: Source Sans Pro and PT Serif
        wp_enqueue_style('humescores-fonts','https://fonts.googleapis.com/css?family=PT+Serif:400,400i,700,700i|Source+Sans+Pro:400,400i,600,900');

    //Connects style.css
    wp_enqueue_style( 'humescores-style', get_stylesheet_uri() );

    wp_enqueue_script( 'humescores-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true );

    wp_enqueue_script( 'humescores-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true );

    if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
        wp_enqueue_script( 'comment-reply' );
    }
}
add_action( 'wp_enqueue_scripts', 'humescores_scripts' );

Directory Structure

enter image description here

  • 写回答

4条回答 默认 最新

  • dongyue9864 2017-11-09 16:49
    关注
    wp_enqueue_style('YOUR_NAME_STYLE', get_template_directory_uri() . '/style.css');
    
    评论

报告相同问题?

悬赏问题

  • ¥15 求解答一道线性规划题,用lingo编程运行,第一问要求写出数学模型和lingo语言编程模型,第二问第三问解答就行,我的ddl要到了谁来求了
  • ¥50 树莓派安卓APK系统签名
  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波