最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

child theme - Scripts don't enqueue after removing plugin

programmeradmin2浏览0评论

Using the Ultimate Member plugin. My custom scripts are loading in my child-theme as follows:

function some_theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    wp_enqueue_script('my-scripts', get_stylesheet_directory_uri() . '/js/my-s.js', array(), '', true);
}
add_action( 'wp_enqueue_scripts', 'some_theme_enqueue_styles' );

I'm trying to remove this plugin, but after deactivating it, my custom scripts stop loading (not CSS, just JS files). Been Googling for a while and can't seem to find an answer. Any idea?

发布评论

评论列表(0)

  1. 暂无评论