How Do I Add a Bootstrap CDN in WordPress?
on 25 August, 2022
No Comments
Bootstrap is a popular front-end library for developing responsive websites. It includes a CDN to speed up page load times. To add a Bootstrap CDN in WordPress, follow these steps:
1. Go to the Bootstrap website and click on the “Download Bootstrap” link.
2. Select the “CDN” option and copy the bootstrap.min.css and bootstrap.
min.js files to your WordPress theme folder.
3. In your WordPress theme’s functions.php file, add the following line of code to load Bootstrap: