Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress和jQueryUI、botstrap、tokenfield。冲突CSS?_Jquery_Css_Wordpress_Conflict - Fatal编程技术网

Wordpress和jQueryUI、botstrap、tokenfield。冲突CSS?

Wordpress和jQueryUI、botstrap、tokenfield。冲突CSS?,jquery,css,wordpress,conflict,Jquery,Css,Wordpress,Conflict,我有一个大问题 我有纯正的wordpress 我安装了Rife免费主题 我为这个主题创建了一个子主题(functions.php、js、css) 我安装了 到目前为止,一切都很好,DATEPICKER也很好 我在addnewevent表单中添加了一个输入字段,该表单使用引导标记字段。因此: FUNCTIONS.PHP文件: function styles_func(){ if ( is_page('submit-event')) { wp_enqueue_sty

我有一个大问题

  • 我有纯正的wordpress
  • 我安装了Rife免费主题
  • 我为这个主题创建了一个子主题(functions.php、js、css)
  • 我安装了 到目前为止,一切都很好,DATEPICKER也很好
  • 我在addnewevent表单中添加了一个输入字段,该表单使用引导标记字段。因此:
  • FUNCTIONS.PHP文件:

    function styles_func(){
        if ( is_page('submit-event'))
        {
            wp_enqueue_style( 'jquery-ui-css', esc_url_raw( 'https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css' ), array(), null );
            wp_enqueue_style( 'bootstrap', esc_url_raw( 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' ), array(), null );
            wp_enqueue_style( 'bootstrap-tokenfield', esc_url_raw( 'https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tokenfield/0.12.0/css/bootstrap-tokenfield.css' ), array(), null );
        }
    }
    add_action('wp_enqueue_scripts', 'styles_func');
    
    function js_func(){
        if ( is_page('submit-event'))
        {
            wp_enqueue_script('jquery-ui-js', 'https://code.jquery.com/ui/1.12.1/jquery-ui.js', array(), '1.12.1', false);
            wp_enqueue_script('bootstrapJS', 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js', array(), '3.3.7', false);
            wp_enqueue_script('bootstrapTokenfieldJS', 'https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tokenfield/0.12.0/bootstrap-tokenfield.js', array(), '0.12.0', false);
            wp_enqueue_script('typeaheadJS', $katalog."typeahead.bundle.js");
    
        }
    }
    add_action('wp_enqueue_scripts', 'js_func');
    
    从现在开始,挑选约会对象的人要想看起来漂亮就有大问题。