简体   繁体   中英

Bootstrap Dropdown Menu doesn't work on wordpress

I made an html template and want to convert this into WordPress. They are all working good, only the Bootstrap dropdown is not working.

Bootstrap says to use this CDNS. But I use (jquery-3.2.1) and (bootstrap.min.js) directly and I use proper.js (cdn). Normally it works perfectly, but when I enqueue this on Function.php like this:

wp_enqueue_script( 'bootstrap', 'http://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js', array('jquery'), 1.12.0, true);

WordPress shows an Error and my dropdown doesn't work.

I followed the following tutorial to use Bootstrap in Wordpress Admin Panel

https://rushfrisby.com/using-bootstrap-in-wordpress-admin-panel/

I hope this can help you, for me was good.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM